The parse default behavior uses a static Parse method or a unary string constructor.
when input is⇓
story test fixture |
check | plain test | 'sample domain'
set guidfield 01234567-89ab-cdef-0123-456789abcdef
check guidfield {01234567-89ab-cdef-0123-456789abcdef} | set | guidfield | 01234567-89ab-cdef-0123-456789abcdef |
check | guidfield | {01234567-89ab-cdef-0123-456789abcdef} |
|
| 'sample domain'
set guidfield 01234567-89ab-cdef-0123-456789abcdef
check guidfield {01234567-89ab-cdef-0123-456789abcdef} | then output is | set | guidfield | 01234567-89ab-cdef-0123-456789abcdef |
check | guidfield | {01234567-89ab-cdef-0123-456789abcdef} |
|
An exception is raised when there is no way to parse the input.
when input is⇓
story test fixture |
check | plain test | 'sample domain'
set calendar '24 Sept 2003' | set | calendar | 24 Sept 2003
Can't parse System.Globalization.Calendar because it doesn't have a static Parse method
|
|
| 'sample domain'
set calendar '24 Sept 2003' | then output is | set | calendar | 24 Sept 2003
Can't parse System.Globalization.Calendar because it doesn't have a static Parse method
|
|