コード例 #1
0
        private static string GetSkipReason(ClrOnlyReason reason)
        {
            switch (reason)
            {
            case ClrOnlyReason.Ilasm:
                return("Mono ilasm doesn't support all of the features we need");

            case ClrOnlyReason.MemberOrder:
                return("Mono returns certain symbols in different order than we are expecting");

            case ClrOnlyReason.Pdb:
                return("Can't emit a PDB in this scenario");

            case ClrOnlyReason.Signing:
                return("Can't sign assemblies in this scenario");

            case ClrOnlyReason.DocumentationComment:
                return("Documentation comment compiler can't run this test on Mono");

            case ClrOnlyReason.Fusion:
                return("Fusion not available on Mono");

            default:
                return("Test supported only on CLR");
            }
        }
コード例 #2
0
        public ClrOnlyFact(ClrOnlyReason reason = ClrOnlyReason.Unknown)
        {
            Reason = reason;

            if (CLRHelpers.IsRunningOnMono())
            {
                Skip = GetSkipReason(Reason);
            }
        }
コード例 #3
0
        public ClrOnlyFact(ClrOnlyReason reason = ClrOnlyReason.Unknown)
        {
            Reason = reason;

            if (MonoHelpers.IsRunningOnMono())
            {
                Skip = GetSkipReason(Reason);
            }
        }
コード例 #4
0
 private static string GetSkipReason(ClrOnlyReason reason)
 {
     switch (reason)
     {
         case ClrOnlyReason.Ilasm:
             return "Mono ilasm doesn't support all of the features we need";
         case ClrOnlyReason.MemberOrder:
             return "Mono returns certain symbols in different order than we are expecting";
         case ClrOnlyReason.Pdb:
             return "Can't emit a PDB in this scenario";
         case ClrOnlyReason.Signing:
             return "Can't sign assemblies in this scenario";
         case ClrOnlyReason.DocumentationComment:
             return "Documentation comment compiler can't run this test on Mono";
         default:
             return "Test supported only on CLR";
     }
 }