Ejemplo n.º 1
0
 static void Test()
 {
     if (MonoLinkerSupport.IsTypeAvailable("System.Security.Cryptography.X509Certificate"))
     {
         throw new AssertionException("System.Security.Cryptography.X509Certificate");
     }
 }
Ejemplo n.º 2
0
 static void Test()
 {
     if (MonoLinkerSupport.IsTypeAvailable("System.Globalization.EncodingTable"))
     {
         throw new AssertionException("System.Globalization.EncodingTable");
     }
 }
Ejemplo n.º 3
0
 static void Test()
 {
     if (MonoLinkerSupport.IsTypeAvailable("Mono.Globalization.Unicode.SimpleCollator"))
     {
         throw new AssertionException("Mono.Globalization.Unicode.SimpleCollator");
     }
 }
        public static void TestAvailable1()
        {
            var supported = MonoLinkerSupport.IsTypeAvailable <Foo> ();

            Console.Error.WriteLine($"SUPPORTED: {supported}");
            if (supported)
            {
                throw new AssertionException("Conditional should have returned false.");
            }
        }
Ejemplo n.º 5
0
        public static void Main()
        {
            var test     = new TestUnicode();
            var collator = test.GetCollator();

            if (collator != null)
            {
                throw new AssertionException("GetCollator() should have returned null.");
            }

            if (MonoLinkerSupport.IsTypeAvailable <SimpleCollator> ())
            {
                throw new AssertionException("SimpleCollator should have been removed.");
            }
        }
        public static void TestAvailable2()
        {
            var supported = MonoLinkerSupport.IsTypeAvailable("Martin.LinkerTest.Foo");

            Console.Error.WriteLine($"SUPPORTED: {supported}");
            if (supported)
            {
                throw new AssertionException("Foo should not be available");
            }

            if (MonoLinkerSupport.IsTypeAvailable("Martin.LinkerTest.Undefined"))
            {
                throw new InvalidOperationException("Undefined type!");
            }
        }
 static void Test()
 {
     if (MonoLinkerSupport.IsTypeAvailable("Mono.Globalization.Unicode.SimpleCollator"))
     {
         throw new AssertionException("Mono.Globalization.Unicode.SimpleCollator");
     }
     if (MonoLinkerSupport.IsTypeAvailable("System.Globalization.JapaneseCalendar"))
     {
         throw new AssertionException("System.Globalization.JapaneseCalendar");
     }
     if (MonoLinkerSupport.IsTypeAvailable("System.Globalization.TaiwanCalendar"))
     {
         throw new AssertionException("System.Globalization.TaiwanCalendar");
     }
     if (MonoLinkerSupport.IsTypeAvailable("System.Globalization.HebrewNumber"))
     {
         throw new AssertionException("System.Globalization.HebrewNumber");
     }
 }