public double GetAllowedExemption() { return Amount < Cap ? Amount : Cap; }
public void ShouldCapHousingLoanInterestExemptionIfAbove1Point5Lac(double testAmount) { HousingLoanInterest housingLoanInterestAmount = new HousingLoanInterest(testAmount); Assert.AreEqual(150000, housingLoanInterestAmount.GetAllowedExemption()); }