fitSharp
Parse Default
The parse default behavior uses a static Parse method or a unary string constructor.

when input is
story test fixture
checkplain test'sample domain'
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}
'sample domain'
set guidfield 01234567-89ab-cdef-0123-456789abcdef
check guidfield {01234567-89ab-cdef-0123-456789abcdef}
then output is
sample domain
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
checkplain test'sample domain'
set calendar '24 Sept 2003'
sample domain
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
sample domain
set calendar 24 Sept 2003
Can't parse System.Globalization.Calendar because it doesn't have a static Parse method
Copyright © 2022 Syterra Software Inc. All rights reserved.