Summary
In this chapter, you learned how to write tests that can detect a failure even before reaching the end of the test. You learned how to use confirms to make sure that the actual values match what you expect them to be. However, this chapter only explained how to check bool values. There are many other types of values you will need to check, such as the following:
- You might have a number such as a count that needs to be confirmed
- You might need to check a string value to make sure it contains the text you expect
The next chapter will add these additional types and explain a common problem when comparing fractional or floating-point numeric values.