I recently had a slip up where, during a demo, navigation to a view failed because the view still referenced a property that I had removed from the view model.
The application still has very little logic, except mapping between domain model and view model, and I would like to introduce unit tests now, and proceed with a more TDD oriented approach, but this case has me stumped? How can I write a unit test that mocks a view?
@Model.SomeNonExistantProperty
`, the compiler should warn you about this. Now if this manifest in a red squiggly but no build time compiler error, someone please tell me. :) – Only Bolivian Here Feb 14 '12 at 14:57