This project is read-only.

Unit tests for the Adapter

The unit tests at present fall into two classes: simple unit tests and scenario tests.

Simple Unit Tests

Many of the tests just drive individual classes. The CacheRequest tests are of this kind -- that class can be tested directly. Data can be set and retrieved, cache requests can be pushed and popped, and so forth.

Scenario Tests

Some of the design patterns cannot be driven directly. For instance, you cannot create an Invoke pattern. We could set up mock objects for this, but at present, the unit tests actually bring up UI with a button, and then ask for the Invoke pattern on that button. These scenario tests are slower than the simple unit tests, but we have not had time to do anything more complex at this point.

Last edited Jan 2, 2010 at 2:43 PM by MSBernstein, version 1


No comments yet.