Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight Unit Testing

I'm using the Silverlight UnitTest framerwork does anyone have a good example have how to unit test an application with it? I'm using it quite successfully to unit test a silverlight class library.

Any pointers and links would be greatly appreciated.

Thanks, Nath

like image 609
NikolaiDante Avatar asked Nov 21 '08 13:11

NikolaiDante


2 Answers

I've written a couple of blog posts about the Silverlight Unit Testing Framework. The first one covers how to test asynchronous code using the asynchronous attribute and some of the more advanced features of the framework. The post can be found at http://jonas.follesoe.no/UnitTestingAsynchronousSilverlightCode.aspx

The second post is about organizing your tests using the Tag-attribute. This enables you to have unit/integration/performance/UI tests in the same test suite, but only execute one specific category at a time. The blog post can be found at http://jonas.follesoe.no/EfficientTestingInSilverlight2UsingTags.aspx

like image 75
Jonas Follesø Avatar answered Nov 12 '22 18:11

Jonas Follesø


Nath, The Silverlight Control Toolkit uses it. Why not take a look at the unit tests there?

http://www.codeplex.com/silverlight

like image 28
Page Avatar answered Nov 12 '22 19:11

Page