コード例 #1
0
 public bool EqualsTo(Money money)
 {
     Bank bank = new Bank();
     return this.Amount * bank.GetRate() == money.Amount;
 }
コード例 #2
0
 public void TestGetRate()
 {
     Bank bank = new Bank();
     Assert.AreEqual(0.5, bank.GetRate("CHF", "USD"));
 }