* MathTest.cs: Add test case for new (2.0) Decimal.Ceiling.
Based on feedback on #80384.
svn path=/trunk/mcs/; revision=70252
+2006-12-30 Alp Toker <alp@atoker.com>
+
+ * MathTest.cs: Add test case for new (2.0) Decimal.Ceiling.
+ Based on feedback on #80384.
+
2006-12-22 Sebastien Pouliot <sebastien@ximian.com>
* DateTimeTest.cs: Add test cases for new (2.0) [To|From]Binary
}
}
+#if NET_2_0
+ public void TestDecimalCeiling() {
+ int iTest = 1;
+ try {
+ decimal a = Math.Ceiling(1.5M);
+ decimal b = 2M;
+
+ iTest++;
+ Assert(a == b);
+
+ iTest++;
+ Assert(Decimal.MaxValue == Math.Ceiling(Decimal.MaxValue));
+
+ iTest++;
+ Assert(Decimal.MinValue == Math.Ceiling(Decimal.MinValue));
+ } catch (Exception e) {
+ Fail("Unexpected Exception at iTest=" + iTest + ": " + e);
+ }
+ }
+#endif
+
public void TestFloor() {
try {
double a = Math.Floor(1.5);