Chapter 23. List Fixtures
RowFixture
tables test that the expected elements of a list match the actual list, or result of a query or search, in the application under test, regardless of order. A fixture of type RowFixture
simply provides the appropriate list of elements from the system under test, as well as the type of those elements. This chapter shows the fixtures for the Fit tables introduced in Chapter 5.
23.1 Testing Unordered Lists
Let’s now return to the chat room occupant test from Section 5.1 on p. 31, as shown again in Figure 23.1. This is a RowFixture
table, with the header row labeling the fields that make up the elements of the list.
Figure 23.1 Fit Table for Testing Occupants
The application has a list of rooms, each of ...
Get Fit for Developing Software: Framework for Integrated Tests now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.