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."; } }
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 } }