GetDeduction() публичный метод

public GetDeduction ( ) : double
Результат double
Пример #1
0
 public void DeductionForAHalfExemptDonationUnder80GShouldbeZeroIfDonationIsZero()
 {
     DonationUnder80G donation = new HalfExemptDonation(0);
     Assert.AreEqual(0, donation.GetDeduction(), 0.001);
 }
Пример #2
0
 public void DeductionForAHalfExemptDonationUnder80GShouldbeHalfOfTheDonationMade()
 {
     DonationUnder80G donation = new HalfExemptDonation(50000);
     Assert.AreEqual(25000, donation.GetDeduction(), 0.001);
 }