예제 #1
0
        public void Call_methods_in_right_order()
        {
            testCase = new Core.TestCase(() => { }, () => { }, () => { });

            testCase.Run();

            Assert.Equal("Setup Run Teardown ", testCase.Log);
        }
예제 #2
0
        public void Run_teardown_method_if_not_null()
        {
            //Arrange
            testCase = new Core.TestCase(() => { }, () => { }, TearDownMock.TearDown);

            //Act
            testCase.Run();

            //Assert
            Assert.Equal(1, TearDownMock.run);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public override void OnTestCaseExecutionComplete(Core.TestCase testCase, Core.TestCaseResult testCaseResult)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 public override void OnTestCaseExecutionBegin(Core.TestCase testCase)
 {
     throw new NotImplementedException();
 }