2004-11-25 Marek Safar <marek.safar@seznam.cz>
authorMarek Safar <marek.safar@gmail.com>
Thu, 25 Nov 2004 09:57:57 +0000 (09:57 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 25 Nov 2004 09:57:57 +0000 (09:57 -0000)
* SqlDecimalTest.cs: Hide constant behind variable to avoid
compiler check.

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

mcs/class/System.Data/Test/System.Data.SqlTypes/ChangeLog
mcs/class/System.Data/Test/System.Data.SqlTypes/SqlDecimalTest.cs

index 8b9503c6ab5cf4d994eebb1b2f216f38ce00d2b1..719dc546221e2b3de1e459132a70126192a03586 100755 (executable)
@@ -1,3 +1,8 @@
+2004-11-25  Marek Safar  <marek.safar@seznam.cz>
+
+       * SqlDecimalTest.cs: Hide constant behind variable to avoid\r
+       compiler check.\r
+\r
 2004-07-20 Umadevi S <sumadevi@novell.com>
        * SqlInt16Test.cs,SqlInt32Test.cs, SqlInt64Test.cs - added testcase for Modulus method (.NET            2.0)
 
index 6562ea494f363667036265cf0e7116f8449b7f8c..d3b4c343b9be567f13aacfedf470da86b9678b86 100755 (executable)
@@ -67,7 +67,8 @@ namespace MonoTests.System.Data.SqlTypes
                        AssertEquals ("#A01", (decimal)30.3098, Test.Value);\r
                        \r
                        try {\r
-                               SqlDecimal test = new SqlDecimal (Decimal.MaxValue + 1);\r
+                                decimal d = Decimal.MaxValue;\r
+                               SqlDecimal test = new SqlDecimal (d + 1);\r
                                Fail ("#A02");                          \r
                        } catch (Exception e) {\r
                                AssertEquals ("#A03", typeof (OverflowException), e.GetType ());\r