}
}
-#if NET_2_0
[Test]
public void TestDecimalCeiling()
{
Assert.IsTrue (Decimal.MaxValue == Math.Ceiling(Decimal.MaxValue), "#2");
Assert.IsTrue (Decimal.MinValue == Math.Ceiling(Decimal.MinValue), "#3");
}
-#endif
[Test]
public void TestFloor ()
Assert.IsTrue (Double.MinValue == Math.Round (Double.MinValue), "#4");
}
-#if NET_2_0
[Test]
public void TestDoubleTruncate ()
{
Assert.IsTrue (Decimal.MaxValue == Math.Truncate (Decimal.MaxValue), "#6");
Assert.IsTrue (Decimal.MinValue == Math.Truncate (Decimal.MinValue), "#7");
}
-#endif
[Test]
public void TestDoubleRound2 ()
Assert.AreEqual (-0.1, Math.Round (-0.123456789, 1), "#3");
}
-#if NET_2_0
[Test]
public void TestDoubleRound3 ()
{
Assert.AreEqual (1, Math.Round (0.5, 0, MidpointRounding.AwayFromZero));
}
-#endif
[Test]
public void TestDecimalSign ()