10.7. Testing Parts of a ListIt can sometimes be inconvenient to test all the elements of a list; we may be interested in the values of only one or more specific elements. A SubsetFixture table allows us to check the elements of interest. For example, the last table in Figure 10.5 simply tests that each of the rows corresponds to elements in the actual list from the system under test. This table uses a header row, just as with RowFixture and ArrayFixture. Any extras in the actual list are ignored and are not shown as surplus. Questions & Answers
Note The FitLibrary contains the fixtures introduced in this chapter, along with the FolderRunner for running test suites of HTML and spreadsheet files. The FitLibrary was developed by Rick Mugridge and released through https://sourceForge.net/projects/fitlibrary in 2005. |