fitSharp
Column Fixture
Column fixtures have a virtual Execute() method which is called before the first check operation in a given row. We can override this method to handle some processing after input/before check.
public class ExecuteExampleFixture : ColumnFixture {
    public int IntField;
    public override void Execute() { IntField = IntField*2; }
}

when test is
story test fixture
checktest result
execute example
int fieldint field?
12
24

execute example
int fieldint field?
12
24

execute example
int fieldint field?
12
24
then result is
execute example
int fieldint field?
12
24

Column fixtures can use a Domain Adapter.

when test is
story test fixture
checktest result
usecolumnwithnewsampledomainadapter
namelower case name?
Billbill

usecolumnwithnewsampledomainadapter
namelower case name?
Billbill

usecolumnwithnewsampledomainadapter
namelower case name?
Billbill
then result is
usecolumnwithnewsampledomainadapter
namelower case name?
Billbill

To create objects, a column heading uses a "new" prefix. An object is created using the data cell as a constructor parameter. The newly-created object becomes the System Under Test.

when test is
story test fixture
checktest result
column
new sample domainname?
BobBob

column
new sample domainname?
BobBob

column
new sample domainname?
BobBob
then result is
column
new sample domainname?
BobBob

A member name beginning with "new" does not create a new object.

when test is
story test fixture
checktest result
usecolumnwithnewsample domain
new namenew name?
TedTed

usecolumnwithnewsample domain
new namenew name?
TedTed

usecolumnwithnewsample domain
new namenew name?
TedTed
then result is
usecolumnwithnewsample domain
new namenew name?
TedTed
Copyright © 2022 Syterra Software Inc. All rights reserved.