Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        public void TestBagSimpleAdd()
        {
            // {[12 CHF][7 USD]} + [14 CHF] == {[26 CHF][7 USD]}
            Money[]  bag      = { new Money(26, "CHF"), new Money(7, "USD") };
            MoneyBag expected = new MoneyBag(bag);

            Assertion.AssertEquals(expected, fMB1.Add(f14CHF));
        }
Beispiel #2
0
        public void BagSimpleAdd()

        {
            // {[12 CHF][7 USD]} + [14 CHF] == {[26 CHF][7 USD]}

            Money[] bag = { new Money(26, "CHF"), new Money(7, "USD") };

            MoneyBag expected = new MoneyBag(bag);

            Assert.AreEqual((object)expected, fMB1.Add(f14CHF));
        }