public void TestRunCompleteIsHandled() { var events = new MyTestLoggerEvents(); var logger = new JUnitTestLogger(); logger.Initialize(events, new Dictionary<string, string>()); var stats = new MyTestRunStatistics(6, 1, 2, 3); var e1 = new TestRunCompleteEventArgs(stats, false, false, null, null, TimeSpan.FromSeconds(1)); events.FireTestRunComplete(e1); }
public void TestRunCompleteIsHandled() { var events = new MyTestLoggerEvents(); var logger = new JUnitTestLogger(); logger.Initialize(events, new Dictionary <string, string>()); var stats = new MyTestRunStatistics(6, 1, 2, 3); var e1 = new TestRunCompleteEventArgs(stats, false, false, null, null, TimeSpan.FromSeconds(1)); events.FireTestRunComplete(e1); }
public void TestResultsAreRecorded() { var events = new MyTestLoggerEvents(); var logger = new JUnitTestLogger(); logger.Initialize(events, new Dictionary<string, string>()); var testCase = new Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase("TestCaseFullName", new Uri("executor://dummy"), "c:\\abc.dll"); var testResult = new TestResult(testCase); events.FireTestResult(new TestResultEventArgs(testResult)); Assert.AreEqual(1, logger.testCases.Count, "There should be only 1 test case now."); }
public void TestResultsAreRecorded() { var events = new MyTestLoggerEvents(); var logger = new JUnitTestLogger(); logger.Initialize(events, new Dictionary <string, string>()); var testCase = new Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase("TestCaseFullName", new Uri("executor://dummy"), "c:\\abc.dll"); var testResult = new TestResult(testCase); events.FireTestResult(new TestResultEventArgs(testResult)); Assert.AreEqual(1, logger.testCases.Count, "There should be only 1 test case now."); }