(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Using NUnit to test Windows Phone 7 applications Part 3: ViewModels and MVVM Light Toolkit

(2 votes)
0 comments   /   posted by Silverlight Show on Aug 17, 2012
Tags:   windows-phone , nunit , mvvm-light , mvvm , andrás-velvárt

Read original post by András Velvárt at Dotneteers

In the previous posts of this series, we managed to get NUnit up and running to test WP7 code outside of the Windows Phone Emulator, in test runners such as NUnit, ReSharper and NCrunch, but paid the price by running into assembly load issues. We created a TestBase class to be the base class for our classes, and added convenience functions to it such as setting a global General.IsTesting flag, comparing arrays and verifying whether INotifyPropertyCollection calls have been performed properly.

In this post, I am going to concentrate on testing ViewModels that use Laurent Bugnion’s MVVM Light Toolkit.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter