public void RecordEndShouldUpdateTestRunCache() { var testCase = new TestCase("A.C.M", new Uri("executor://dummy"), "A"); var testRecorder = new TestExecutionRecorder(null, this.testableTestRunCache); testRecorder.RecordEnd(testCase, TestOutcome.Passed); Assert.IsTrue(this.testableTestRunCache.TestCompletedList.Contains(testCase)); }
public void RecordEndShouldSendTestCaseEvents() { var testCase = new TestCase("A.C.M", new Uri("executor://dummy"), "A"); var mockTestCaseEventsHandler = new Mock <ITestCaseEventsHandler>(); var testRecorder = new TestExecutionRecorder(mockTestCaseEventsHandler.Object, this.testableTestRunCache); testRecorder.RecordEnd(testCase, TestOutcome.Passed); mockTestCaseEventsHandler.Verify(tceh => tceh.SendTestCaseEnd(testCase, TestOutcome.Passed), Times.Once); }