X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FTest%2FSystem%2FTypeTest.cs;h=e8675c2043fafb330ab813819e670675f5942d58;hb=b0eff411fcc55fa6a7bbc5ee97bb592fe3204309;hp=7a5fa68463919b7ef4324b190639ce086abe80c2;hpb=867e2664ec36d1d751ff38d3ead9b817fe5e6e8d;p=mono.git diff --git a/mcs/class/corlib/Test/System/TypeTest.cs b/mcs/class/corlib/Test/System/TypeTest.cs index 7a5fa684639..e8675c2043f 100644 --- a/mcs/class/corlib/Test/System/TypeTest.cs +++ b/mcs/class/corlib/Test/System/TypeTest.cs @@ -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 }); + } } }