How to test Windows 7 class library?

Is there a way to test the Windows Phone 7 Class library? Usually (for WinForms or WPF applications) I create a separate class library and add a link to nunit.framework.dll and to the class library that I want to test.

Here, if I create a new Windows Phone class library, it does not allow me to add a reference to the NUnit assembly.

If I create a regular class library, this obviously allows me to reference NUnit, but it doesn’t allow me to add a link to the Windows Phone class library that I want to test. Closed loop :)

Any ideas on how I can perform my unit testing?

UPD: I think there is no right solution yet. There is one raw manual solution (it's not even alpha) http://wptestlib.codeplex.com/ . UnitDriven and Silverlight Unit Test Framework can be used if you do not want to test specific . That is, it is not possible to link specific WP7 assemblies in these projects.

+3
source share
1 answer

Source: https://habr.com/ru/post/1768897/


All Articles