Switch to compiler-tester
[mono.git] / mcs / class / corlib / Test / System / TypeTest.cs
index 7a5fa68463919b7ef4324b190639ce086abe80c2..e8675c2043fafb330ab813819e670675f5942d58 100644 (file)
@@ -28,11 +28,11 @@ namespace MonoTests.System
 
        interface IFace1 {
                void foo ();
-    }
+       }
 
        interface IFace2 : IFace1 {
                void bar ();
-    }
+       }
 
        interface IFace3 : IFace2 {
        }
@@ -270,6 +270,8 @@ namespace MonoTests.System
 
                [Test]
                [Category("NotDotNet")]
+               // Depends on the GAC working, which it doesn't durring make distcheck.
+               [Category ("NotWorking")]
                public void GetTypeWithWhitespace () {
                        AssertNotNull (Type.GetType
                                                   (@"System.Configuration.NameValueSectionHandler,
@@ -365,15 +367,31 @@ PublicKeyToken=b77a5c561934e089"));
 
                [Test]
                public void CreateValueTypeNoCtor () {
-            typeof(B).InvokeMember ("", BindingFlags.CreateInstance, null, null, null);
+                       typeof(B).InvokeMember ("", BindingFlags.CreateInstance, null, null, null);
                }
 
                [Test]
                [ExpectedException (typeof (MissingMethodException))]
                public void CreateValueTypeNoCtorArgs () {
-            typeof(B).InvokeMember ("", BindingFlags.CreateInstance, null, null, new object [] { 1 });
+                       typeof(B).InvokeMember ("", BindingFlags.CreateInstance, null, null, new object [] { 1 });
                }
 
+               class TakesInt {
+                       public TakesInt (int x) {}
+               }
+
+               class TakesObject {
+                       public TakesObject (object x) {}
+               }
+
+               [Test]
+               [Category ("NotWorking")] // Filed as bug #75241
+               public void GetConstructoNullInTypes ()
+               {
+                       // This ends up calling type.GetConstructor ()
+                       Activator.CreateInstance (typeof (TakesInt), new object [] { null });
+                       Activator.CreateInstance (typeof (TakesObject), new object [] { null });
+               }
        }
 }