Browse Source

2006-06-07 Zoltan Varga <[email protected]>

	* BinderTests.cs: Add test for BindingFlags.ExactBinding.

svn path=/trunk/mcs/; revision=61508
Zoltan Varga 19 years ago
parent
commit
78124de241

+ 11 - 0
mcs/class/corlib/Test/System.Reflection/BinderTests.cs

@@ -293,6 +293,17 @@ namespace MonoTests.System.Reflection
 			Assert.AreEqual (3, bug42457_2, "#6");
 		}
 
+		static void MethodWithLongParam(long param)
+		{
+		}
+
+		[Test]
+		public void TestExactBinding ()
+		{
+			Type[] types = new Type[] { typeof(int) };
+			Assert.AreEqual (null, typeof (BinderTest).GetMethod("MethodWithLongParam", BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.ExactBinding,  null, types, null));
+		}
+
 		public void Bug42457Method (object thing)
 		{
 			bug42457 = 1;

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

@@ -1,3 +1,7 @@
+2006-06-07  Zoltan Varga  <[email protected]>
+
+	* BinderTests.cs: Add test for BindingFlags.ExactBinding.
+
 2006-05-28  Gert Driesen  <[email protected]>
 
 	* MethodInfoTest.cs: No longer derive from (deprecated) Assertion.