コード例 #1
0
 public void ShouldIncreaseBalanceAfterPositiveInterest(double startingBalance)
 {
     _sut = new SavingsAccount("Mieke", 0.10, startingBalance);
     _sut.AddInterests();
     Assert.That(_sut.Balance, Is.GreaterThan(startingBalance));
 }
コード例 #2
0
        public void SavingAccountShouldAddInterestCorrectly()
        {
            sut.AddInterests();

            Assert.That(sut.Balance, Is.EqualTo(105));
        }