public void AfterTestException()
        {
            ExceptionThrowingActionAttribute.Reset();
            ExceptionThrowingActionAttribute.ThrowAfterException = true;

            ActionAttributeExceptionFixture.Reset();

            TestResult result = FindFailureTestResult(RunTest());

            Assert.IsTrue(result.FailureSite == FailureSite.TearDown);
            Assert.IsTrue(ActionAttributeExceptionFixture.TestRun);
        }
        public void BeforeTestException()
        {
            ExceptionThrowingActionAttribute.Reset();
            ExceptionThrowingActionAttribute.ThrowBeforeException = true;

            ActionAttributeExceptionFixture.Reset();

            TestResult result = FindFailureTestResult(RunTest());

            Assert.IsTrue(result.FailureSite == FailureSite.SetUp);
            Assert.IsFalse(ActionAttributeExceptionFixture.TestRun);
        }