/// <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()); }
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()); }