Esempio n. 1
0
 private RuntimeFlavor GetRuntimeFlavor(string tfm)
 {
     if (Tfm.Matches(Tfm.Net461, tfm))
     {
         return(RuntimeFlavor.Clr);
     }
     return(RuntimeFlavor.CoreClr);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
            }
        }