Example #1
0
        public void DecModifierMix()
        {
            // do not use Assert.AreEqual to test if Prices are equal

            var p = new UnitPrice(2, 100, CurrencyUnit.EUR, TimeSpanUnit.Hour);

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

            Assert.IsTrue(pZ == pZ.Dec(p11));
        }