Unit Testing Silverlight Applications – UI testing and Test Automation

In my last post I am going to cover the last two topics I set out to address.  The first topic is UI testing.  What unit test frameworks lack sometime is the actually UI testing.  What I mean by that is for example, click on a button, then see what happens.  In case of Silverlight, …

Continue reading ‘Unit Testing Silverlight Applications – UI testing and Test Automation’ »

Unit Testing Silverlight Applications – Mocking

In this post I will explore ability to mock various Silverlight classes in order to enable mocking in your unit tests.  There is a variety of mocking frameworks available, but I will pick one for my testing – Moq.  You can download the framework here,  Once this is done, I need to add some references …

Continue reading ‘Unit Testing Silverlight Applications – Mocking’ »

Unit Testing Silverlight Applications – Asynchronous Testing

In this post I will describe how to create asynchronous unit tests for Silverlight applications.  First of all, I’d like to point out that any communication with a server component in Silverlight must be asynchronous.  Reason being is that if communication was synchronous and the remote service was not responding, browser which host Silverlight application …

Continue reading ‘Unit Testing Silverlight Applications – Asynchronous Testing’ »

Unit Testing Silverlight Applications

I am starting a short series of posts on unit testing of Silverlight applications.  I will be using the following set of technologies.  Microsoft Silverlight Unit testing framework that ships with Silverlight tool kit Moq – mocking framework that supports Silverlight 4 StatLight – unit testing automation framework that will allow for unattended / automated …

Continue reading ‘Unit Testing Silverlight Applications’ »

WCF RIA Services Validation

Today I am continuing exploring WCF RIA Services.  I am going to discuss validation in RIA Services. Any business application needs to validate user input.  I am going to start with a simple case.  In my sample application a user can enter a company information.  I would like to setup RIA Services to force the …

Continue reading ‘WCF RIA Services Validation’ »