예제 #1
0
 public void TestEqualsWhenSecondNumberGreaterThanFirstOneButDifferenceLowerThan002()
 {
     Assert.IsTrue(AmountComparer.Equals(1567.1234m, 1567.1238m));
 }
예제 #2
0
 public void TestEqualsWhenFirstNumberGreaterThanSecondOneButDifferenceLowerThan002()
 {
     Assert.IsTrue(AmountComparer.Equals(243.001m, 243.02m));
 }
예제 #3
0
 public void TestEqualsWhenFirstNumberGreaterThanSecondOne()
 {
     Assert.IsFalse(AmountComparer.Equals(243m, 242.97m));
 }
예제 #4
0
 public void TestEqualsWhenSecondNumberGreaterThanFirstOne()
 {
     Assert.IsFalse(AmountComparer.Equals(242.974321m, 243.0001m));
 }
예제 #5
0
 public void TestEqualsWhenThe2NumbersAreReallyEquals()
 {
     Assert.IsTrue(AmountComparer.Equals(123.3456m, 123.3456m));
 }