Over the past few posts I’ve been exploring models for modularized Silverlight applications that follow the MVVM pattern (using Prism/CAL). In this post, I’d like to cover unit testing, and writing appropriate tests not just for the view model, but the view itself.
Before we continue, I’m going to assume you’ve read:
- Dynamic Module Loading with Silverlight Navigation using Prism
- MVVM Composition in Silverlight
- Simplifying Asynchronous Calls in Silverlight using Action
These articles form the core of what I’m about to discuss. I also want to make sure you’re familiar with the Silverlight unit testing framework. You can download it and review some articles about how to use it over at the Unit Test Framework for Microsoft Silverlight page. I highly recommend pulling down the project and class templates as they will make your life easier!
from Jeremy Likness more here