Fit for Developing Software: Framework for Integrated Tests

5.3. Summary

  • We often need to test collections, especially after carrying out some actions on a system under test, to check that an appropriate change has occurred.

  • RowFixture tables are good for checking the elements of a list.

  • Where the order of the list is important, a table column is needed to give the order.

  • We see in Section 10.6 on p. 78 that ArrayFixture tables can also be used to check that the elements are in the correct order.

  • We see in Section 10.7 on p. 79 that SubsetFixture tables check that all the expected elements in the table occur in the actual collection but ignore surplus elements.

    Категории