/// <summary> /// Initializes a new instance of the test run results. /// </summary> /// <param name="unitTestHarness">The unit test harness.</param> public TestRunData(UnitTestHarness unitTestHarness) { Passed = true; _assemblies = new ObservableCollection <TestAssemblyData>(); _harness = unitTestHarness; _information = new TestApplicationInformation(); _harness.TestAssemblyStarting += (x, xe) => IsRunning = true; _harness.TestAssemblyCompleted += (x, xe) => { IsRunning = false; NotifyPropertyChanged("PassedAndComplete"); }; _harness.IsDispatcherRunningChanged += (x, xe) => NotifyPropertyChanged("IsDispatcherRunning"); }
/// <summary> /// Initializes a new instance of the test run results. /// </summary> /// <param name="unitTestHarness">The unit test harness.</param> public TestRunData(UnitTestHarness unitTestHarness) { Passed = true; _assemblies = new ObservableCollection<TestAssemblyData>(); _harness = unitTestHarness; _information = new TestApplicationInformation(); _harness.TestAssemblyStarting += (x, xe) => IsRunning = true; _harness.TestAssemblyCompleted += (x, xe) => { IsRunning = false; NotifyPropertyChanged("PassedAndComplete"); }; _harness.IsDispatcherRunningChanged += (x, xe) => NotifyPropertyChanged("IsDispatcherRunning"); }