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