public void RunTestMethod_ExpectedExceptionSucceded()
        {
            var instance   = new DummyTest5();
            var testMethod = typeof(DummyTest5).GetMethod("TestExpectedExceptionSucceeded");

            var testResult = _sandboxTestRunner.RunTestMethod(instance, testMethod, null, null);

            testResult.EnsureNotFailed();
        }
        public void RunTestMethod_TestFailed()
        {
            var instance   = new DummyTest5();
            var testMethod = typeof(DummyTest5).GetMethod("TestFailed");

            var testResult = _sandboxTestRunner.RunTestMethod(instance, testMethod, null, null);

            Assert.That(testResult.Status, Is.EqualTo(SandboxTestStatus.Failed));
        }
        public void RunTestMethod_TearDownFailed()
        {
            var instance       = new DummyTest5();
            var testMethod     = typeof(DummyTest5).GetMethod("TestSucceeded");
            var tearDownMethod = typeof(DummyTest5).GetMethod("TestThrowsException");

            var testResult = _sandboxTestRunner.RunTestMethod(instance, testMethod, null, tearDownMethod);

            Assert.That(testResult.Status, Is.EqualTo(SandboxTestStatus.FailedInTearDown));
        }