static void Unload(object sender, EventArgs e) { var testRunResults = CurrentTestRun.GetStories().ToList(); var config = Activator.CreateInstance(ReportConfiguration); foreach (var processor in Processors) { ((ITestResultProcessor)Activator.CreateInstance(processor, new[] { config })).Process(testRunResults); } }
internal static void StartNewTest() { _lastTest = new XmlTest(); CurrentTestRun.AddTest(_lastTest); }