Author: gert
Date: 2007-04-30 15:33:06 -0400 (Mon, 30 Apr 2007)
New Revision: 76507
Modified:
trunk/mcs/class/corlib/Test/System/ChangeLog
trunk/mcs/class/corlib/Test/System/TypeTest.cs
Log:
* TypeTest.cs: Added test for Equals with null argument.
Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog 2007-04-30 19:10:33 UTC
(rev 76506)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog 2007-04-30 19:33:06 UTC
(rev 76507)
@@ -1,3 +1,7 @@
+2007-04-30 Gert Driesen <[EMAIL PROTECTED]>
+
+ * TypeTest.cs: Added test for Equals with null argument.
+
2007-04-25 Atsushi Enomoto <[EMAIL PROTECTED]>
* DateTimeTest.cs : test for 'F' rmoving preceding '.'
Modified: trunk/mcs/class/corlib/Test/System/TypeTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/TypeTest.cs 2007-04-30 19:10:33 UTC
(rev 76506)
+++ trunk/mcs/class/corlib/Test/System/TypeTest.cs 2007-04-30 19:33:06 UTC
(rev 76507)
@@ -579,6 +579,13 @@
#endif // TARGET_JVM
[Test]
+ public void Equals_Type_Null ()
+ {
+ Assert.IsFalse (typeof (int).Equals ((Type) null),
"#1");
+ Assert.IsFalse (typeof (int).Equals ((object) null),
"#2");
+ }
+
+ [Test]
[Category("NotWorking")]
public void GetElementType_Bug63841 ()
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches