public void EqualityIsCorrect() { OpenPropertySegment openPropertySegment1 = new OpenPropertySegment("superbeans"); OpenPropertySegment openPropertySegment2 = new OpenPropertySegment("superbeans"); openPropertySegment1.Equals(openPropertySegment2).Should().BeTrue(); }
public void InequalityIsCorrect() { OpenPropertySegment openPropertySegment1 = new OpenPropertySegment("superbeans"); OpenPropertySegment openPropertySegment2 = new OpenPropertySegment("incredibeans"); BatchSegment segment = BatchSegment.Instance; openPropertySegment1.Equals(openPropertySegment2).Should().BeFalse(); openPropertySegment2.Equals(segment).Should().BeFalse(); }