public void ThrowPendingError(TestStatus testStatus, string message)
{
switch (runtimeConfiguration.MissingOrPendingStepsOutcome)
{
case MissingOrPendingStepsOutcome.Pending:
unitTestRuntimeProvider.TestPending(message);
break;
case MissingOrPendingStepsOutcome.Inconclusive:
unitTestRuntimeProvider.TestInconclusive(message);
break;
case MissingOrPendingStepsOutcome.Ignore:
unitTestRuntimeProvider.TestIgnore(message);
break;
default:
if (testStatus == TestStatus.MissingStepDefinition)
throw GetMissingStepDefinitionError();
throw GetPendingStepDefinitionError();
}
}