public void ensureTableEntryIsntEqualToInstanceOfOtherType() { FinishPriceTableEntry instance = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); Assert.False(instance.Equals("bananas")); }
public void ensureTableEntryIsEqualToItself() { FinishPriceTableEntry instance = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); Assert.True(instance.Equals(instance)); }
public void ensureTableEntriesWithEqualPropertiesAreEqual() { FinishPriceTableEntry instance = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); FinishPriceTableEntry other = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); Assert.True(instance.Equals(other)); }
public void ensureTableEntriesWithDifferentFinishesArentEqual() { FinishPriceTableEntry instance = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); FinishPriceTableEntry other = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createOtherFinish()); Assert.False(instance.Equals(other)); }