9.2. Expected Errors with ActionsErrors may also arise in testing actions, as a supplied data value may be invalid. With ActionFixture, we can check for such errors in two ways. In Figure 9.5, we check the occupant count of a room that has not been created and expect an error.
In Figure 9.6, a user cannot enter a room that has not been created. So we check that room entered is no to see that the enter room action was unsuccessful, as expected.
|