fitSharp
Combination Fixture
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
checktest result
sample combination
123
1123
2246
330069

sample combination
123
1123
2246
3300 expected
3 actual
69

sample combination
123
1123
2246
330069
then result is
sample combination
123
1123
2246
3300 expected
3 actual
69

'SetUp' and 'TearDown' methods are executed if they exist.

when test is
story test fixture
checktest result
sample combination
12
112
224

sample combination
12
112
224
checklogSetUp() Combine(1,1) Combine(1,2) Combine(2,1) Combine(2,2) TearDown()

sample combination
12
112
224
then result is
sample combination
12
112
224
with logSetUp() Combine(1,1) Combine(1,2) Combine(2,1) Combine(2,2) TearDown()

Errors are reported.

when test is
story test fixture
checktest result
sample combination
1x
112
2y4

sample combination
1x
Parse parameter 2 for 'Combine' type System.Int32 failed.
112
2y
Input string was not in a correct format.
4

sample combination
1x
112
2y4
then result is
sample combination
1x
Parse parameter 2 for 'Combine' type System.Int32 failed.
112
2y
Input string was not in a correct format.
4

when test is
story test fixture
checktest result
sample combination
12
11
2246

sample combination
12
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.
246

sample combination
12
11
2246
then result is
sample combination
12
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.
246

When no data is present, nothing is done.

when test is
story test fixture
checktest 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
checktest result
sample combination
1

sample combination
1

sample combination
1
then result is
sample combination
1
© Copyright Syterra Software Inc. All rights reserved.