public void MissingLsgIncome() { //Arrange var totalIncome = new Income() { JulianaDeposit = 20, RolloverAmount = 50 }; var expected = 70; //Act var actual = totalIncome.AddIncomes(); //Assert Assert.AreEqual(expected, actual); }
public void MissingJulianaDeposit() { //Arrange var totalIncome = new Income() { LsgIncome = 20, RolloverAmount = 10, FamilyGift = 3, UnexpectedIncome = 4 }; var expected = 37; //Act var actual = totalIncome.AddIncomes(); //Assert Assert.AreEqual(expected, actual); }
public void AddIncomeValidEntries() { //Arrange var totalIncome = new Income() { LsgIncome = 30, JulianaDeposit = 30, UnexpectedIncome = 3, FamilyGift = 5, RolloverAmount = 10 }; var expected = 78; //Act var actual = totalIncome.AddIncomes(); //Assert Assert.AreEqual(expected, actual); }