コード例 #1
0
        //ELA
        public void ShouldCalculateCreditCardCorrectly2()
        {
            var c2         = credit1nodebt.CalculateCardTransaction(transact1pos, credit1nodebt);
            var expectedc2 = new CreditCard(1500.00m, 0, 234563);

            c2.Should().BeEquivalentTo(expectedc2);
        }
コード例 #2
0
        //ELA
        public void ShouldCalculateCreditCardCorrectly1()
        {
            var c1         = credit1debt.CalculateCardTransaction(transact1pos, credit1debt);
            var expectedc1 = new CreditCard(800.00m, 0, 234563);

            c1.Should().BeEquivalentTo(expectedc1);
        }