private static void SimulateTestResult(ITestRun testRun) { var source = "/tmp/test.dll"; var executorUri = new Uri("executor://dummy"); var passingResult = new TestResult(new TestCase("NS.C.TM1", executorUri, source)) { Outcome = TestOutcome.Passed }; var failingResult = new TestResult(new TestCase("NS.C.TM2", executorUri, source)) { Outcome = TestOutcome.Failed }; testRun.Result(new TestResultEventArgs(passingResult)); testRun.Result(new TestResultEventArgs(failingResult)); TestRunMessageEventArgs().ForEach(x => testRun.Message(x)); }