예제 #1
0
        public void SimpleAddMoney()
        {
            Cash add      = new Cash(10, "CHF");
            Cash expected = new Cash(24, "CHF");

            Assert.AreEqual(expected, f14CHF.AddMoney(add));
        }
예제 #2
0
        public void AddMoneyTest()
        {
            Cash    add       = new Cash(5, "USD");
            CashBag reference = new CashBag(add, f14CHF);

            Assert.AreEqual(reference, f14CHF.AddMoney(add));
        }