示例#1
0
 public RuntimeFact(TestRuntime runtime)
 {
     if (runtime.HasFlag(TestRuntime.Clr) &&
         EnvironmentHelper.GetRuntime() != Runtime.Clr)
     {
         Skip = "Full framework test.";
     }
     else if (runtime.HasFlag(TestRuntime.CoreClr) &&
              EnvironmentHelper.GetRuntime() != Runtime.CoreClr)
     {
         Skip = ".NET Core 2 test.";
     }
 }
示例#2
0
        public RuntimeTheory(TestRuntime runtime)
        {
            if (runtime.HasFlag(TestRuntime.Clr))
            {
#if NETCORE
                Skip = "Full framework test.";
#endif
            }
            else if (runtime.HasFlag(TestRuntime.CoreClr))
            {
#if !NETCORE
                Skip = ".NET Core test.";
#endif
            }
        }