+2009-02-02 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * TypeTest.cs: Add a test for #471255.
+
2009-01-27 Zoltan Varga <vargaz@gmail.com>
* TypeTest.cs: Add a test for #467229.
Assert.AreEqual(1, mArgs[0].GetCustomAttributes (typeof (DocAttribute), true).Length, "#1");
}
+ [Test] //bug #471255
+ public void GetTypeCalledUsingReflection ()
+ {
+ Type expectedType = Type.GetType ("NoNamespaceClass");
+ Assert.IsNotNull (expectedType, "#1");
+ MethodInfo m = typeof (Type).GetMethod ("GetType", BindingFlags.Public | BindingFlags.Static, null, new Type [] { typeof (string) }, null);
+ object r = m.Invoke (null, BindingFlags.Default, null, new object [] { "NoNamespaceClass" }, CultureInfo.InvariantCulture);
+ Assert.AreSame (expectedType, r, "#2");
+ }
+
[Test]
public void EqualsUserType () {
UserType2 t1 = new UserType2(null);