Set Up Fixture invokes a method for each row using the row cells as input. The method name is created by concatenating the text in the header row cells. 'SetUp' and 'TearDown' methods are called if they exist.
when test is⇓
story test fixture |
check | test result |
with | type | log |
check | content | SetUp() Ab(1,2) Ab(3,4) TearDown() |
|
with | type | log |
check | content | SetUp() Ab(1,2) Ab(3,4) TearDown() |
|
|
with | type | log |
check | content | SetUp() Ab(1,2) Ab(3,4) TearDown() |
| then result is |
with | type | log |
check | content | SetUp() Ab(1,2) Ab(3,4) TearDown() |
|
Errors are reported.
when test is⇓
story test fixture |
check | test result |
|
sample setup |
gar
Member 'garbage' with 2 parameter(s) not found for type 'fit.Test.Double.SampleSetupFixture'.
| bage |
1 | 2 |
|
|
| then result is |
sample setup |
gar
Member 'garbage' with 2 parameter(s) not found for type 'fit.Test.Double.SampleSetupFixture'.
| bage |
1 | 2 |
|
when test is⇓
story test fixture |
check | test result |
|
sample setup |
a | b |
1
Row should be 2 cells wide.
|
2
Row should be 2 cells wide.
| 3 | 4 |
|
|
| then result is |
sample setup |
a | b |
1
Row should be 2 cells wide.
|
2
Row should be 2 cells wide.
| 3 | 4 |
|