示例#1
0
        public void ThrowPendingError(TestStatus testStatus, string message)
        {
            switch (specFlowConfiguration.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();
            }
        }
示例#2
0
 public void BeforeScenarioShouldIgnore()
 {
     //_unitTestRuntimeProvider.TestIgnore("This scenario should be ignored at runtime.");
     _unitTestRuntimeProvider.TestInconclusive("This scenario should be ignored at runtime.");
 }