public void ReferenceSegmentsWithDifferenceNavigationSourcesShouldNotBeEqual() { ReferenceSegment referenceSegment1 = new ReferenceSegment(HardCodedTestModel.GetPeopleSet()); ReferenceSegment referenceSegment2 = new ReferenceSegment(HardCodedTestModel.GetPet1Set()); referenceSegment1.Equals(referenceSegment2).Should().BeFalse(); referenceSegment2.Equals(referenceSegment1).Should().BeFalse(); }
public void ReferenceSegmentsWithSameNavigationSourcesShouldBeEqual() { ReferenceSegment referenceSegment1 = new ReferenceSegment(HardCodedTestModel.GetPet1Set()); ReferenceSegment referenceSegment2 = new ReferenceSegment(HardCodedTestModel.GetPet1Set()); Assert.True(referenceSegment1.Equals(referenceSegment2)); Assert.True(referenceSegment2.Equals(referenceSegment1)); }