fitSharp
Method Execution
We can execute methods on our System Under Test using a row in Flow Mode.

when input is
story test fixture
checkplain test'sample class'
check count 0
'count method'
check count 1
sample class
check count 0
count method
check count 1
'sample class'
check count 0
'count method'
check count 1
then output is
sample class
check count 0
count method
check count 1

We can check return values and pass parameters.

when input is
story test fixture
checkplain test'sample class'
check 'method no parms' samplereturn
check 'method with parms' 'my value' 'samplemy value'
sample class
check method no parms samplereturn
check method with parms my value samplemy value
'sample class'
check 'method no parms' samplereturn
check 'method with parms' 'my value' 'samplemy value'
then output is
sample class
check method no parms samplereturn
check method with parms my value samplemy value

We can execute generic methods.

when input is
story test fixture
checkplain test'sample class'
check 'generic method of System.Int32' 123 sample123
sample class
check generic method of System.Int32 123 sample123
'sample class'
check 'generic method of System.Int32' 123 sample123
then output is
sample class
check generic method of System.Int32 123 sample123

We can access properties, fields and indexers.

when input is
story test fixture
checkplain test'sample class'
set property something
check property something
set field else
check field else
check anything indexanything
sample class
set property something
check property something
set field else
check field else
check anything indexanything
'sample class'
set property something
check property something
set field else
check field else
check anything indexanything
then output is
sample class
set property something
check property something
set field else
check field else
check anything indexanything
© Copyright Syterra Software Inc. All rights reserved.