Пример #1
0
        /// <summary>
        ///
        /// </summary>
        public void TestBagSubtract()
        {
            // {[12 CHF][7 USD]} - {[14 CHF][21 USD] == {[-2 CHF][-14 USD]}
            Money[]  bag      = { new Money(-2, "CHF"), new Money(-14, "USD") };
            MoneyBag expected = new MoneyBag(bag);

            Assertion.AssertEquals(expected, fMB1.Subtract(fMB2));
        }
Пример #2
0
        public void BagSubtract()

        {
            // {[12 CHF][7 USD]} - {[14 CHF][21 USD] == {[-2 CHF][-14 USD]}

            Money[] bag = { new Money(-2, "CHF"), new Money(-14, "USD") };

            MoneyBag expected = new MoneyBag(bag);

            Assert.AreEqual((object)expected, fMB1.Subtract(fMB2));
        }