Пример #1
0
 public void RoundingUpDefaultMidpointTest()
 {
     Rounding rounding = new Rounding(0.05M);
     decimal rounded = rounding.Round(1.225M);
     Assert.AreEqual(1.25M, rounded);
 }
Пример #2
0
 public void RoundingUpTest()
 {
     Rounding rounding = new Rounding(0.05M);
     decimal rounded = rounding.Round(1.24M);
     Assert.AreEqual(1.25M, rounded);
 }
Пример #3
0
 public void RoundingDownTest()
 {
     Rounding rounding = new Rounding(0.05M);
     decimal rounded = rounding.Round(1.22M);
     Assert.AreEqual(1.20M, rounded);
 }