public void LoadTests(IList <string> files) { if (IsPackageLoaded) { UnloadTests(); } _files = files; TestsLoading?.Invoke(new TestFilesLoadingEventArgs(files)); _package = MakeTestPackage(files); Runner = _testEngine.GetRunner(_package); Tests = new TestNode(Runner.Explore(TestFilter.Empty)); _resultIndex.Clear(); TestLoaded?.Invoke(new TestNodeEventArgs(TestAction.TestLoaded, Tests)); foreach (var subPackage in _package.SubPackages) { RecentFiles.SetMostRecent(subPackage.FullName); } }
public void FireTestLoaded(TestNode testNode) { TestLoaded?.Invoke(new TestNodeEventArgs(testNode)); }