After making the following changes in an effort to run the tests immediately:
private void Application_Startup(object sender, StartupEventArgs e)
{
//RootVisual = UnitTestSystem.CreateTestPage();
UnitTestSettings settings = UnitTestSystem.CreateDefaultSettings();
settings.StartRunImmediately = true;
settings.ShowTagExpressionEditor = false;
RootVisual = UnitTestSystem.CreateTestPage(settings);
}
I find that the tests run twice. Any ideas on how I can avoid this behaviour?
I just ran into this same issue, and found that it is solved by setting the StartRunImmediately parameter to true after calling CreateTestPage(), and setting settings.TestService to null: