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

            var p = new UnitPrice(5, 50, CurrencyUnit.EUR, TimeSpanUnit.Hour);

            Assert.IsTrue(new UnitPrice(1, 50, CurrencyUnit.EUR, TimeSpanUnit.Hour) == p.Rem(p23));
        }
Example #2
0
        public void RemModifierZero()
        {
            // do not use Assert.AreEqual to test if Prices are equal

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