Beispiel #1
0
        public void DecModifierMix()
        {
            // do not use Assert.AreEqual to test if Prices are equal
            var p = new Price(2, 100, CurrencyUnit.EUR);

            Assert.IsTrue(p == p.Dec(pN));
            Assert.IsTrue(p == p.Dec(pZ));
        }
Beispiel #2
0
 public void DecModifierDifferentCurrency()
 {
     pEUR.Dec(pUSD);
 }
Beispiel #3
0
 public void DecModifierZero()
 {
     // do not use Assert.AreEqual to test if Prices are equal
     Assert.IsTrue(pZ == pZ.Dec(p11));
 }