public void BeforeTest(ITest testDetails) { if (!ScriptingEnvironment.IsNetFramework()) { Assert.Ignore("Requires .NET Framework"); } }
public void ApplyToTest(Test test) { if (!ScriptingEnvironment.IsNetFramework()) { test.RunState = RunState.Skipped; test.Properties.Set(PropertyNames.SkipReason, "Requires dotnet Framework"); } }