Author: jbevain
Date: 2007-08-24 06:38:37 -0400 (Fri, 24 Aug 2007)
New Revision: 84795
Modified:
trunk/mcs/class/corlib/Test/System/ChangeLog
trunk/mcs/class/corlib/Test/System/TypeTest.cs
Log:
2007-08-24 Jb Evain <[EMAIL PROTECTED]>
* TypeTest.cs: Add tests for AssemblyQualifiedName for
byref types.
Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog 2007-08-24 10:36:22 UTC
(rev 84794)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog 2007-08-24 10:38:37 UTC
(rev 84795)
@@ -1,3 +1,8 @@
+2007-08-24 Jb Evain <[EMAIL PROTECTED]>
+
+ * TypeTest.cs: Add tests for AssemblyQualifiedName for
+ byref types.
+
2007-08-23 Eyal Alaluf <[EMAIL PROTECTED]>
* DateTimeTest.cs: Added more tests for DateTime.Parse.
Modified: trunk/mcs/class/corlib/Test/System/TypeTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/TypeTest.cs 2007-08-24 10:36:22 UTC
(rev 84794)
+++ trunk/mcs/class/corlib/Test/System/TypeTest.cs 2007-08-24 10:38:37 UTC
(rev 84795)
@@ -496,6 +496,19 @@
Assert.IsNull (t.GetField ("field"));
Assert.IsNull (t.GetProperty ("property"));
}
+
+ [Test]
+ public void TestAssemblyQualifiedName ()
+ {
+ Type t = Type.GetType ("System.Byte[]&");
+ Assert.IsTrue (t.AssemblyQualifiedName.StartsWith
("System.Byte[]&"));
+
+ t = Type.GetType ("System.Byte*&");
+ Assert.IsTrue (t.AssemblyQualifiedName.StartsWith
("System.Byte*&"));
+
+ t = Type.GetType ("System.Byte&");
+ Assert.IsTrue (t.AssemblyQualifiedName.StartsWith
("System.Byte&"));
+ }
struct B
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches