interface IFace1 {
void foo ();
- }
+ }
interface IFace2 : IFace1 {
void bar ();
- }
+ }
interface IFace3 : IFace2 {
}
[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,
[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 });
+ }
}
}