Hash Tables are collections of name-value pairs that can be passed as arguments into test fixtures. They render as tables. DoFixture will decode a name-value pair table into a true hashtable.
Any text enclosed in !{ and } will be treated as a Hash Table.
Markup Text |
Displays as |
||||||
!{fname:Bob, lname:Martin, dob:5-Dec-1952} |
|
The key name must be plain text, but the value can be any reasonable wiki construct.
Markup Text |
Displays as |
||||||
!{fname:''Bob'', lname:''Martin'', today:!today} |
|
You can use line breaks inside them.
Markup Text |
Displays as |
||
!{ name: Bob. } |
|
Syntax issues.
- A colon, comma and closing brace simply cannot be placed in either the name or the value.
- The comma is optional. This is valid: !{name:bob dob:19521205}
CSS
You can change their apperance using the css classes hash_table, hash_row, hash_key, and hash_valueAdd Child Page to MarkupHashTable