December 2013
Beginner
416 pages
12h 45m
English
Normally you want your tests to run as quickly as possible so that they don’t slow you down. Is there a way you can change the test so that it doesn’t delay the application? If you could set the elapsed time, this would be possible. There are three ways to approach this.
Change the TimerState class so that the elapsed time can be set. Although this is not required in the current application, it would make it easier to test.
Extend the TimerState class, and override the elaspedTime method so that it can be set for testing ...
Read now
Unlock full access