Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now that we’ve got the Presenter tests as well as the View tests well under way, it’s time to look at writing tests for the Model. The tests you’ll be writing for the Model will be somewhat similar to those you used to test the Presenter in that we’ll be testing the interaction between the Model and the RemoteService by utilizing mock objects and setting expectations on the executions performed on them. You’ll start as you did for the Presenter and View tests by creating the test class.
|
|