public void Call_methods_in_right_order() { testCase = new Core.TestCase(() => { }, () => { }, () => { }); testCase.Run(); Assert.Equal("Setup Run Teardown ", testCase.Log); }
public void Run_teardown_method_if_not_null() { //Arrange testCase = new Core.TestCase(() => { }, () => { }, TearDownMock.TearDown); //Act testCase.Run(); //Assert Assert.Equal(1, TearDownMock.run); }
public void Run_test_without_setup_if_setup_is_null() { //Arrange testCase = new Core.TestCase(() => { }, null, () => { }); //Act testCase.Run(); //Assert Assert.Contains("Run", testCase.Log); Assert.Contains("Teardown", testCase.Log); }
public override void OnTestCaseExecutionComplete(Core.TestCase testCase, Core.TestCaseResult testCaseResult) { throw new NotImplementedException(); }
public override void OnTestCaseExecutionBegin(Core.TestCase testCase) { throw new NotImplementedException(); }