Beispiel #1
0
        public void MixedSimpleAdd()
        {
            // [12 CHF] + [7 USD] == {[12 CHF][7 USD]}
            Moneda[] bag      = { _moneda12CHF, _moneda7USD };
            Monedero expected = new Monedero(bag);

            Assert.AreEqual(expected, _moneda12CHF.Agregar(_moneda7USD));
        }
Beispiel #2
0
        public void SimpleBagAdd()
        {
            // [14 CHF] + {[12 CHF][7 USD]} == {[26 CHF][7 USD]}
            Moneda[] bag      = { new Moneda(26, Divisa.CHF), new Moneda(7, Divisa.USD) };
            Monedero expected = new Monedero(bag);

            Assert.AreEqual(expected, _moneda14CHF.Agregar(_monedero1));
        }