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);
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.