public void CompoundInterestTest() { double amount = CompoundInterest.GetAmount(principal, rate, time); double interest = CompoundInterest.GetInterest(principal, rate, time); Assert.AreEqual(principal, CompoundInterest.GetPrincipal(amount, rate, time)); Assert.AreEqual(time, CompoundInterest.GetTime(amount, principal, rate)); Assert.AreEqual(rate, CompoundInterest.GetRate(amount, principal, time)); }