예제 #1
0
            public void ShouldReduceBalance()
            {
                Account sut = new AccountBuilder().WithBalance(1000m);

                sut.Debit(250m);

                var expected = 750m;

                Assert.AreEqual(expected, sut.Balance);
            }
예제 #2
0
            public void ShouldReduceWithdrawn()
            {
                Account sut = new AccountBuilder().WithWithdrawn(0m);

                sut.Debit(250m);

                var expected = -250m;

                Assert.AreEqual(expected, sut.Withdrawn);
            }