示例#1
0
        public void MoneyWithEqualAmountShouldBeEqual()
        {
            Money money1 = new Money(100);
            Money money2 = new Money(100);

            Assert.IsTrue(money1.Equals(money2));
        }
示例#2
0
        public void MoneyWithDifferentAmountShouldNotBeEqual()
        {
            Money money1 = new Money(100);
            Money money2 = new Money(200);

            Assert.IsFalse(money1.Equals(money2));
        }