Hello
I am trying to get a test to skip based on a check made in EnumerateTestCommands
e.g.
Code:
if (someCriteria)
{
return new[] { new SkipCommand(method, method.Name, "Integration test skipped") };
}
but this is resulting in a failed test
> *** Warnings ***
> The test was skipped. Reason: Integration test skipped
Ideally it would result in the same thing as adding Skip to the attribute declaration (which I can't do in this case)
Code:
[Fact(Skip = "Integration test skipped")]
Ant