public void InequalityIsCorrect() { TypeSegment typeSegment1 = new TypeSegment(HardCodedTestModel.GetPersonType(), null); TypeSegment typeSegment2 = new TypeSegment(HardCodedTestModel.GetDogType(), null); BatchSegment batchSegment = BatchSegment.Instance; typeSegment1.Equals(typeSegment2).Should().BeFalse(); typeSegment1.Equals(batchSegment).Should().BeFalse(); }
public void EqualityIsCorrect() { TypeSegment typeSegment1 = new TypeSegment(HardCodedTestModel.GetPersonType(), null); TypeSegment typeSegment2 = new TypeSegment(HardCodedTestModel.GetPersonType(), null); typeSegment1.Equals(typeSegment2).Should().BeTrue(); }
public void EqualityIsCorrect() { TypeSegment typeSegment1 = new TypeSegment(HardCodedTestModel.GetPersonType(), null); TypeSegment typeSegment2 = new TypeSegment(HardCodedTestModel.GetPersonType(), null); Assert.True(typeSegment1.Equals(typeSegment2)); }