10.6. Ordered List TablesAs we saw in Section 5.2 on p. 34, we can use RowFixture to test lists in which the order matters. We do this by including an extra column that gives the order of the rows. Another approach is to use an ArrayFixture, which takes account of the order of the elements automatically. This is shown in the fourth table in Figure 10.5. The action ordered list selects an ArrayFixture, which checks that the expected and actual lists are the same, in the same order. As with RowFixture, the header row labels four expected field values of each element in the list. Correct rows are colored green in the report. Questions & Answers
|