2009-05-24 Robert Jordan <robertj@gmx.net>
authorRobert Jordan <robertj@gmx.net>
Sun, 24 May 2009 14:06:26 +0000 (14:06 -0000)
committerRobert Jordan <robertj@gmx.net>
Sun, 24 May 2009 14:06:26 +0000 (14:06 -0000)
* GenericTest.cs: differentiate between "Test(int)" and
"Test<int>(int)" to prove that the correct method is invoked.

svn path=/trunk/mcs/; revision=134649

mcs/class/System.Runtime.Remoting/Test/ChangeLog
mcs/class/System.Runtime.Remoting/Test/GenericTest.cs

index 6680e9c53c290d4319df26e220fe23bd1f9f442e..30ff23c75bf01b07c2ff75a982c5627bf3ec5cd7 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-24  Robert Jordan  <robertj@gmx.net>
+
+       * GenericTest.cs: differentiate between "Test(int)" and
+       "Test<int>(int)" to prove that the correct method is invoked.
+
 2009-05-24  Robert Jordan  <robertj@gmx.net>
 
        * GenericTest.cs (TestCrossAppDomainChannel): disable on MS.NET as
index 1afface21b4b3488fb403f015f7bcbf1f4cf3d38..f755e4386a661cadfdf0d6fb396a78c53293849c 100644 (file)
@@ -97,7 +97,7 @@ namespace MonoTests.Remoting
                
                public int Test (int i)
                {
-                       return i;
+                       return i + 500;
                }
 
                int INested.Test (int a, int b)
@@ -130,7 +130,7 @@ namespace MonoTests.Remoting
 
                public int Test (int i)
                {
-                       return i;
+                       return i + 500;
                }
 
                int INested.Test (int a, int b)
@@ -219,7 +219,7 @@ namespace MonoTests.Remoting
                        Assert.AreEqual (42, cao.Test (),
                                         "#5a calling INested.Test ()");
 
-                       Assert.AreEqual (42, cao.Test (42),
+                       Assert.AreEqual (42 + 500, cao.Test (42),
                                         "#5 calling INested.Test (int)");
 
                        Assert.AreEqual (42, cao.Test (21, 21),
@@ -235,7 +235,7 @@ namespace MonoTests.Remoting
                        Assert.AreEqual (42, cao.Test (),
                                         "#9a calling INested.Test ()");
 
-                       Assert.AreEqual (42, cao.Test (42),
+                       Assert.AreEqual (42 + 500, cao.Test (42),
                                         "#9 calling INested.Test (int)");
 
                        Assert.AreEqual (42, cao.Test (21, 21),