Author: yonik
Date: 2006-11-02 05:52:44 -0500 (Thu, 02 Nov 2006)
New Revision: 67262

Modified:
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/UnitTest.cs
Log:
Little format and directive changed for revision 67260 
Added a NotWorking category attribute for tests that pass on .NET and fail on 
mono.

Modified: trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/UnitTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/UnitTest.cs       
2006-11-02 09:46:37 UTC (rev 67261)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/UnitTest.cs       
2006-11-02 10:52:44 UTC (rev 67262)
@@ -266,18 +266,17 @@
                        // throws because there is stuff after cm (a)
                        Unit a = new Unit ("-45cm a");
                }
-
-#if !NET_2_0
-        [Test]
+       
+               [Test]
                [ExpectedException (typeof (FormatException))]
-        public void IncorrectConstructor9()
-        {
-            // throws because floating point values are not valid for Pixel.
-            Unit a = new Unit("34.4px");
-            
-        }
+               public void IncorrectConstructor9()
+               {
+                   // throws because floating point values are not valid for 
Pixel.
+                   Unit a = new Unit("34.4px");
+                   
+               }
 
-        [Test]
+               [Test]
                [ExpectedException (typeof (ArgumentOutOfRangeException))]
                public void IncorrectConstructor10 ()
                {
@@ -303,7 +302,7 @@
                }
 
                [Test]
-        [Category ("NotWorking")]
+               [Category ("NotWorking")]
                public void Unit_IFormatProviderToString ()
                {
                        MyFormatProvider mfp = new MyFormatProvider ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to