public void TestNextYearsInterestRate_Equals_ThisYearsInterestRate() { SavingsAccountYear thisYear = NewAccount(); Assert.AreEqual(thisYear.InterestRate(), thisYear.NextYear().InterestRate()); }
//Helper Methods private SavingsAccountYear NewAccount() { SavingsAccountYear account = new SavingsAccountYear(10000, 10); return(account); }
public void TestNextYearsStartingBalance_Equals_ThisYearsEndingBalance() { SavingsAccountYear thisYear = NewAccount(); Assert.AreEqual(thisYear.EndingBalance(), thisYear.NextYear().StartingBalance()); }