Exemple #1
0
 public void ItShouldCreateNegativeValue()
 {
     MoneyInt.RoundUp(-1).should_be_valid().Value.Should().Be(-1);
 }
Exemple #2
0
 public void ItShouldRoundUpValidValue()
 {
     MoneyInt.RoundUp(1.25m).should_be_valid().Value.Should().Be(2);
 }
Exemple #3
0
 public void ItShouldThrowExceptionWhenGivenValueIsTooBig()
 {
     MoneyInt.RoundUp(10m * 1000 * 1000 * 1000 * 1000).should_fail();
 }