예제 #1
0
        public void MoneysAreTransitive()
        {
            Money moneyA = new MoneyBuilder().Build();
            Money moneyB = new MoneyBuilder().Build();
            Money moneyC = new MoneyBuilder().Build();

            moneyA.Should().Be(moneyB);
            moneyB.Should().Be(moneyC);
            moneyA.Should().Be(moneyC);
        }
예제 #2
0
        public void MoneysAreSymmetric()
        {
            Money moneyA = new MoneyBuilder().Build();
            Money moneyB = new MoneyBuilder().Build();

            moneyA.Should().Be(moneyB);
            moneyB.Should().Be(moneyA);
        }
예제 #3
0
        public void MoneysAreReflexive()
        {
            Money money = new MoneyBuilder().Build();

            money.Should().Be(money);
        }
예제 #4
0
        public void MoneyIsNotEqualToNull()
        {
            Money money = new MoneyBuilder().Build();

            money.Should().NotBeNull();
        }
예제 #5
0
        public void MoneysAreTransitive()
        {
            Money moneyA = new MoneyBuilder().Build();
            Money moneyB = new MoneyBuilder().Build();
            Money moneyC = new MoneyBuilder().Build();

            moneyA.Should().Be(moneyB);
            moneyB.Should().Be(moneyC);
            moneyA.Should().Be(moneyC);
        }
예제 #6
0
        public void MoneysAreSymmetric()
        {
            Money moneyA = new MoneyBuilder().Build();
            Money moneyB = new MoneyBuilder().Build();

            moneyA.Should().Be(moneyB);
            moneyB.Should().Be(moneyA);
        }
예제 #7
0
 public void MoneysAreReflexive()
 {
     Money money = new MoneyBuilder().Build();
     money.Should().Be(money);
 }
예제 #8
0
 public void MoneyIsNotEqualToNull()
 {
     Money money = new MoneyBuilder().Build();
     money.Should().NotBeNull();
 }