コード例 #1
0
 public void SetDonationAmount()
 {
     Donor doner = new Donor();
     doner.DonationAmount = _decDonationAmount;
     Assert.AreEqual(_decDonationAmount, doner.DonationAmount);
 }
コード例 #2
0
 public void CalculateGiftAidMethod()
 {
     Donor doner = new Donor();
     doner.DonationAmount = _decDonationAmount;
     doner.GiftAidTotal = (doner.DonationAmount / 100) * _decTaxRate;
     Assert.AreEqual(_decGiftAidAmount, doner.GiftAidTotal);
 }