Combination Fixture executes a 'Combine' method using every combination of values from the header row and first column and compares the result to the cell at the intersection of the input value cells.
when test is⇓
story test fixture |
check | test result |
sample combination |
| 1 | 2 | 3 |
1 | 1 | 2 | 3 |
2 | 2 | 4 | 6 |
3 | 300 | 6 | 9 |
|
sample combination |
| 1 | 2 | 3 |
1 | 1 | 2 | 3 |
2 | 2 | 4 | 6 |
3 | 300 expected 3 actual | 6 | 9 |
|
|
sample combination |
| 1 | 2 | 3 |
1 | 1 | 2 | 3 |
2 | 2 | 4 | 6 |
3 | 300 | 6 | 9 |
| then result is |
sample combination |
| 1 | 2 | 3 |
1 | 1 | 2 | 3 |
2 | 2 | 4 | 6 |
3 | 300 expected 3 actual | 6 | 9 |
|
'SetUp' and 'TearDown' methods are executed if they exist.
when test is⇓
story test fixture |
check | test result |
sample combination |
| 1 | 2 |
1 | 1 | 2 |
2 | 2 | 4 |
|
sample combination |
| 1 | 2 |
1 | 1 | 2 |
2 | 2 | 4 |
|
check | log | SetUp() Combine(1,1) Combine(1,2) Combine(2,1) Combine(2,2) TearDown() |
|
sample combination |
| 1 | 2 |
1 | 1 | 2 |
2 | 2 | 4 |
| then result is |
sample combination |
| 1 | 2 |
1 | 1 | 2 |
2 | 2 | 4 |
| with log | SetUp() Combine(1,1) Combine(1,2) Combine(2,1) Combine(2,2) TearDown() |
Errors are reported.
when test is⇓
story test fixture |
check | test result |
sample combination |
| 1 | x |
1 | 1 | 2 |
2 | y | 4 |
|
sample combination |
| 1 | x
Parse parameter 2 for 'fit.Test.Double.SampleCombinationFixture:Combine(2)' type System.Int32 failed.
|
1 | 1 | 2 |
2 | y
Input string..was not in a correct format.
| 4 |
|
|
sample combination |
| 1 | x |
1 | 1 | 2 |
2 | y | 4 |
| then result is |
sample combination |
| 1 | x
Parse parameter 2 for 'fit.Test.Double.SampleCombinationFixture:Combine(2)' type System.Int32 failed.
|
1 | 1 | 2 |
2 | y
Input string..was not in a correct format.
| 4 |
|
when test is⇓
story test fixture |
check | test result |
sample combination |
| 1 | 2 |
1 | 1 |
2 | 2 | 4 | 6 |
|
sample combination |
| 1 | 2 |
1
This table is invalid for this fixture: Row should be 2 cells wide.
| 1 |
2
This table is invalid for this fixture: Row should be 2 cells wide.
| 2 | 4 | 6 |
|
|
sample combination |
| 1 | 2 |
1 | 1 |
2 | 2 | 4 | 6 |
| then result is |
sample combination |
| 1 | 2 |
1
This table is invalid for this fixture: Row should be 2 cells wide.
| 1 |
2
This table is invalid for this fixture: Row should be 2 cells wide.
| 2 | 4 | 6 |
|
When no data is present, nothing is done.
when test is⇓
story test fixture |
check | test result |
sample combination |
no data |
| 1 |
|
sample combination |
no data |
| 1 |
|
|
sample combination |
no data |
| 1 |
| then result is |
sample combination |
no data |
| 1 |
|
when test is⇓
story test fixture |
check | test result |
|
|
|
| then result is |
|