public void MoneysAreSymmetric() { Money moneyA = new MoneyBuilder().Build(); Money moneyB = new MoneyBuilder().Build(); moneyA.Should().Be(moneyB); moneyB.Should().Be(moneyA); }
public void SubtractGstReturnsOriginalMoneyIncreasedByGSTAmount() { Money money = new MoneyBuilder().WithPrice(1900.5m).Build(); Gst gst = new Gst(12.5m); Money expected = money.Multiply(gst.GstFraction / gst.Multiplier); Money actual = money.GstPaid(gst); actual.Should().Be(expected); }
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); }
public void MoneyIsNotEqualToNull() { Money money = new MoneyBuilder().Build(); money.Should().NotBeNull(); }
public void MoneysAreReflexive() { Money money = new MoneyBuilder().Build(); money.Should().Be(money); }