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

            Assertion.AssertEquals(expected, fMB1.Negate());
        }
Beispiel #2
0
        public void BagNegate()

        {
            // {[12 CHF][7 USD]} negate == {[-12 CHF][-7 USD]}

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

            MoneyBag expected = new MoneyBag(bag);

            Assert.AreEqual((object)expected, fMB1.Negate());
        }