--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
if (ScenarioContext.Current.TestError != null
&& ScenarioContext.Current.TestError is IgnoredException)
{
var exception = ScenarioContext.Current.TestError;
PropertyInfo testStatusProperty = typeof(ScenarioContext).GetProperty("TestStatus", BindingFlags.Instance | BindingFlags.NonPublic);
PropertyInfo testErrorProperty = typeof(ScenarioContext).GetProperty("TestError", BindingFlags.Instance | BindingFlags.NonPublic);
var testStatus = testStatusProperty.GetValue(ScenarioContext.Current, null); // for debug
var testError = testErrorProperty.GetValue(ScenarioContext.Current, null); // for debug
testStatusProperty.SetValue(ScenarioContext.Current, TestStatus.OK, null);
testErrorProperty.SetValue(ScenarioContext.Current, null, null);
}Name "IgnoredException" for example
Test Outcome: Skipped
Test Duration: 0:00:00.0263362
Result Message: Assert.Inconclusive failed. ignored