InstaTax.Tests.ChapterSixDeductionTest.ShouldReturnZeroDeductionIfInvestmentIsNotAvailableAndEpfIsZero C# (CSharp) Метод

ShouldReturnZeroDeductionIfInvestmentIsNotAvailableAndEpfIsZero() приватный Метод

private ShouldReturnZeroDeductionIfInvestmentIsNotAvailableAndEpfIsZero ( ) : void
Результат void
        public void ShouldReturnZeroDeductionIfInvestmentIsNotAvailableAndEpfIsZero()
        {
            var salary = new AnnualSalary {Epf = 0.0};
            TaxStatement ts = new TaxStatement(salary, null);
            Assert.AreEqual(0.0, ts.GetChapter6Deductions(), 0.01);

            salary = new AnnualSalary();
            ts = new TaxStatement(salary, null) { Chapter6Investments = new Chapter6Investments() };
            Assert.AreEqual(0.0, ts.GetChapter6Deductions(), 0.01);
        }