fitSharp
Flow Mode
In Flow Mode, a fixture processes all the tables in the story test, without repeating the fixture name in the first row of each table.

Each row is interpreted as one of the following.
If the method invoked for a row returns certain types, the return value will be set as the System Under Test for a Fixture Wrapper that will process the rest of the table.

A row might ambiguously refer to: a fixture class name, a method in the fixture or System Under Test, or a keyword. With method-keyword ambiguity, the keyword is executed. With fixture-method ambiguity, the method is executed.

when input is
story test fixture
checkplain test'sample do'

check one 1

summary
sample do

check one 1

summary
'sample do'

check one 1

summary
then output is
sample do

check one 1

summary

Errors are reported.

when input is
story test fixture
checkplain test'sample do'
garbage

check more garbage
sample do
garbage
Type 'garbage' not found in assemblies:

check more
Member 'more' with 0 parameter(s) not found for type 'fit.Test.Double.SampleDoFixture'.
garbage
'sample do'
garbage

check more garbage
then output is
sample do
garbage
Type 'garbage' not found in assemblies:

check more
Member 'more' with 0 parameter(s) not found for type 'fit.Test.Double.SampleDoFixture'.
garbage

when input is
story test fixture
checkplain testgarbage
garbage
Type 'garbage' not found in assemblies:
garbagethen output is
garbage
Type 'garbage' not found in assemblies:

Copyright © 2022 Syterra Software Inc. All rights reserved.