コード例 #1
0
        public void WithReversal50ShouldCreateANegativeCreditOf50()
        {
            var subject = new CreditLedgerTransaction();

            LedgerTransaction result = subject.WithReversal(50);

            Assert.AreEqual(-50M, result.Credit);
        }
コード例 #2
0
        public void WithReversal50ShouldReturnSameObjectForChaining()
        {
            var subject = new CreditLedgerTransaction();

            LedgerTransaction result = subject.WithReversal(50);

            Assert.AreSame(subject, result);
        }
コード例 #3
0
        public void WithReversal50ShouldAZeroDebitAmount()
        {
            var subject = new CreditLedgerTransaction();

            LedgerTransaction result = subject.WithReversal(50);

            Assert.AreEqual(0M, result.Debit);
        }