NUnit.Framework.Internal.TestSuiteResult.RecordException C# (CSharp) Method

RecordException() public method

Set the test result based on the type of exception thrown and the site of the Failure.
public RecordException ( Exception ex, FailureSite site ) : void
ex System.Exception The exception that was thrown
site FailureSite The FailureSite
return void
        public override void RecordException(Exception ex, FailureSite site)
        {
            RecordException(ex);

            if (site == FailureSite.SetUp)
            {
                switch (ResultState.Status)
                {
                    case TestStatus.Skipped:
                        this.skipCount = this.test.TestCaseCount;
                        break;

                    case TestStatus.Failed:
                        this.failCount = this.test.TestCaseCount;
                        break;
                }
            }
        }
    }