It is always crucial with software to ensure that applications do exactly what they are intended to. Despite its importance, this question has not been paid the necessary attention due to the difficulty of the task, except for certain sectors where reliability is critical (mission critical),such as sanitary environments, flight control, factory software, the military industry, and so on. However, nowadays we bear witness to a dramatic change in this sense, and every project must have a test strategy.
In this chapter, we will start by covering current testing techniques, and then we will move from standard .NET testing to specific Silverlight testing procedures. In brief we will cover:
Introducing a bit of theory
Testing server code
Testing client code using general-purpose tooling
Testing client code using Silverlight-specific tooling
Adding testing to our trunk project sample, using the Moq framework