* iface4.cs: Tested also Stop method (just to be on the safe side).
authorMassimiliano Mantione <massi@mono-cvs.ximian.com>
Mon, 4 Feb 2008 15:27:45 +0000 (15:27 -0000)
committerMassimiliano Mantione <massi@mono-cvs.ximian.com>
Mon, 4 Feb 2008 15:27:45 +0000 (15:27 -0000)
svn path=/trunk/mono/; revision=94753

mono/tests/ChangeLog
mono/tests/iface4.cs

index f2d0b43e58d0e26f8d0b06e9085307f0d773e43f..ecdc20b81467e0565ba983fbf12a6d7bfc654743 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-04  Massimiliano Mantione  <massi@ximian.com>
+
+       * iface4.cs: Tested also Stop method (just to be on the safe side).
+
 2008-01-28  Rodrigo Kumpera  <rkumpera@novell.com>
 
        * Makefile.am: disabled bug-348522.2.cs until after release.
index 72d93951dcf5b7d128c499d637396c51a5fb05c3..17b97d803ebd7a9d4b2d4c135dc792db67e183e4 100644 (file)
@@ -35,6 +35,7 @@ public class Test {
                Derived2 d2 = new Derived2 ();
                Base b1 = d1;
                Base b2 = d2;
+               Base rb = new Base ();
 
                if (d1.Turn () != 4)
                        return 1;
@@ -51,8 +52,16 @@ public class Test {
                if (((IVehicle)b2).Turn () != 7)
                        return 5;
                
-               //Console.WriteLine ("TEST {0}", ((IVehicle)b2).Turn ());       
+               if (((IVehicle)rb).Stop () != 2)
+                       return 6;
 
+               if (((IVehicle)d1).Stop () != 2)
+                       return 7;
+
+               if (((IVehicle)d2).Stop () != 6)
+                       return 8;
+
+               //Console.WriteLine ("TEST {0}", ((IVehicle)b2).Turn ());
                return 0;
        }
 }