O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing Multiple Assemblies

The current implementation of the UTF for Windows Phone does not support inclusion of tests from assemblies outside the test project; all tests must reside in the Windows Phone test project.

When this shortcoming is rectified, if you want to have a single project for testing and include other test assemblies, add assemblies to the TestAssemblies collection of the UnitTestSettings class, as shown:

UnitTestSettings settings = UnitTestSystem.CreateDefaultSettings();settings.TestAssemblies.Add(typeof(TestClass1).Assembly);settings.TestAssemblies.Add(typeof(TestClass2).Assembly);UIElement testPage = UnitTestSystem.CreateTestPage(settings);

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required