Thursday, September 13, 2012

How to do the unit testing for the simple silverlight application

How to do the unit testing for the simple silverlight application

I am having simple Calculator application. In this i have one Method. I don't know how to test that method nu? Can you please any one help me.

Thanks in advance

Answers & Comments...

Answer: 1

There is a Silverlight Unit Testing Framework included in the Silverlight Toolkit, which is available here. More information on the unit testing framework can be found here.

One alternative approach that I often use myself is to separate the non-UI Silverlight code into for example a portable class library that can be referenced from Silverlight applications as well as regular .NET applications or WP7 applications. Then I create a normal NUnit .NET Framework test library to unit test the components of my portable class library.

by : Anders Gustafssonhttp://stackoverflow.com/users/650012




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog