fitSharp
Set Fixture
Set Fixture compares an actual collection of objects to its table of expected values. It is the same as Array Fixture, except order is not significant.

setup sample array
column acolumn b
ax
ay
by

Matching cells are marked.

when test is
story test fixture
checktest result
sample set
column acolumn b
ax
ay
by

sample set
column acolumn b
ax
ay
by

sample set
column acolumn b
ax
ay
by
then result is
sample set
column acolumn b
ax
ay
by

Order is ignored.

when test is
story test fixture
checktest result
sample set
column acolumn b
ay
by
ax

sample set
column acolumn b
ay
by
ax

sample set
column acolumn b
ay
by
ax
then result is
sample set
column acolumn b
ay
by
ax

Mismatched cells and rows are reported.

when test is
story test fixture
checktest result
sample set
column acolumn b
ax
no
bz

sample set
column acolumn b
ax
n missingo
bz expected
y actual
At 0 expected z was y
a surplus y

sample set
column acolumn b
ax
no
bz
then result is
sample set
column acolumn b
ax
n missingo
bz expected
y actual
At 0 expected z was y
a surplus y
Copyright © 2022 Syterra Software Inc. All rights reserved.