コード例 #1
0
 // Assert that the amount of money is an even
 // number of dollars (no cents)
 public static void AssertNoCents(Money amount,
                                  String message)
 {
     Assert.That(
         Decimal.Truncate(amount.AsDecimal()),
         Is.EqualTo(amount.AsDecimal()),
         message);
 }