public void Division()
        {
            Assert.AreEqual(Usd.Amount(50) / 5, Usd.Amount(10));
            Assert.AreEqual(Usd.Amount(12.345m) / 10, Usd.Amount(1.2345m));
            long v = 10;

            Assert.AreEqual(Usd.Amount(1000) / v, Usd.Amount(100));
        }
        public void Multiplication()
        {
            Assert.AreEqual(Usd.Amount(10) * 5, Usd.Amount(50));
            Assert.AreEqual(Usd.Amount(10) * 1.2345m, Usd.Amount(12.345m));
            long v = 10;

            Assert.AreEqual(Usd.Amount(10) * v, Usd.Amount(100));
        }
 public void Addition()
 {
     Assert.AreEqual(Usd.Amount(5).Add(5), Usd.Amount(10));
     Assert.AreEqual(Usd.Amount(5) + Usd.Amount(5), Usd.Amount(10));
     Assert.AreEqual(Usd.Amount(5) + 5, Usd.Amount(10));
 }
 public void Subtraction()
 {
     Assert.AreEqual(Usd.Amount(10).Subtract(5), Usd.Amount(5));
     Assert.AreEqual(Usd.Amount(10) - Usd.Amount(5), Usd.Amount(5));
     Assert.AreEqual(Usd.Amount(10) - 5, Usd.Amount(5));
 }
 public void MoneyToDecimalIsLessThanOrEqual()
 {
     Assert.IsTrue(Usd.Amount(3) <= 4);
     Assert.IsFalse(Usd.Amount(6) <= 5);
     Assert.IsTrue(Usd.Amount(4) <= 4);
 }
 public void Inequality()
 {
     Assert.IsTrue(Usd.Amount(3) != Usd.Amount(3.01m));
     Assert.IsFalse(Usd.Amount(3) != Usd.Amount(3));
 }
 public void MoneyToDecimalIsGreaterThanOrEqual()
 {
     Assert.IsTrue(Usd.Amount(5) >= 4);
     Assert.IsFalse(Usd.Amount(4) >= 5);
     Assert.IsTrue(Usd.Amount(4) >= 4);
 }
 public void MoneyToDecimalLessThan()
 {
     Assert.IsTrue(Usd.Amount(3) < 4);
     Assert.IsFalse(Usd.Amount(6) < 5);
     Assert.IsFalse(Usd.Amount(4) < 4);
 }
 public void MoneyToDecimalGreaterThan()
 {
     Assert.IsTrue(Usd.Amount(5) > 4);
     Assert.IsFalse(Usd.Amount(4) > 5);
     Assert.IsFalse(Usd.Amount(4) > 4);
 }
 public void MoneyToMoneyLessThanOrEqual()
 {
     Assert.IsTrue(Usd.Amount(3) <= Usd.Amount(4));
     Assert.IsFalse(Usd.Amount(6) <= Usd.Amount(5));
     Assert.IsTrue(Usd.Amount(4) <= Usd.Amount(4));
 }
 public void MoneyToMoneyGreaterThanOrEqual()
 {
     Assert.IsTrue(Usd.Amount(5) >= Usd.Amount(4));
     Assert.IsFalse(Usd.Amount(4) >= Usd.Amount(5));
     Assert.IsTrue(Usd.Amount(4) >= Usd.Amount(4));
 }