Browse Source

2007-08-03 Zoltan Varga <[email protected]>

	* MethodInfoTest.cs: Add another test.

svn path=/trunk/mcs/; revision=83419
Zoltan Varga 18 years ago
parent
commit
8d7c5a9f3d

+ 2 - 0
mcs/class/corlib/Test/System.Reflection/ChangeLog

@@ -1,5 +1,7 @@
 2007-08-03  Zoltan Varga  <[email protected]>
 
+	* MethodInfoTest.cs: Add another test.
+	
 	* MethodInfoTest.cs: Add test for Invoking methods with a nullable type receiver.
 
 2007-07-20  Gert Driesen  <[email protected]>

+ 3 - 1
mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs

@@ -392,7 +392,9 @@ namespace MonoTests.System.Reflection
 
 			// Test conversion of vtype to a nullable type for the this argument
 			PropertyInfo pi = typeof (Nullable <int>).GetProperty ("HasValue");
-		    Assert.IsTrue ((bool)pi.GetGetMethod ().Invoke (10, null) == true);
+		    Assert.AreEqual (true, pi.GetGetMethod ().Invoke (10, null));
+			PropertyInfo pi2 = typeof (Nullable <int>).GetProperty ("Value");
+		    Assert.AreEqual (10, pi2.GetGetMethod ().Invoke (10, null));
 		}
 
 		public static void foo_generic<T> ()