private RuntimeFlavor GetRuntimeFlavor(string tfm) { if (Tfm.Matches(Tfm.Net461, tfm)) { return(RuntimeFlavor.Clr); } return(RuntimeFlavor.CoreClr); }
private static string SkipIfTfmIsNotSupportedOnThisOS(string tfm) { if (Tfm.Matches(Tfm.Net461, tfm) && !RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return("This TFM is not supported on this operating system."); } return(null); }
private void VaryByApplicationType(List <TestVariant> variants, string tfm, string skip) { foreach (var t in ApplicationTypes) { var type = t; if (Tfm.Matches(Tfm.Net461, tfm) && type == ApplicationType.Portable) { if (ApplicationTypes.Count == 1) { // Override the default type = ApplicationType.Standalone; } else { continue; } } VaryByArchitecture(variants, tfm, skip, type); } }