public void InequalityIsCorrect() { ValueSegment segment1 = new ValueSegment(ModelBuildingHelpers.BuildValidEntityType()); ValueSegment segment2 = new ValueSegment(ModelBuildingHelpers.BuildValidComplexType()); BatchSegment segment3 = BatchSegment.Instance; segment1.Equals(segment2).Should().BeFalse(); segment1.Equals(segment3).Should().BeFalse(); }
public void InequalityIsCorrect() { ValueSegment segment1 = new ValueSegment(ModelBuildingHelpers.BuildValidEntityType()); ValueSegment segment2 = new ValueSegment(ModelBuildingHelpers.BuildValidComplexType()); BatchSegment segment3 = BatchSegment.Instance; Assert.False(segment1.Equals(segment2)); Assert.False(segment1.Equals(segment3)); }
public void EqualityIsCorrect() { IEdmEntityType entityType = ModelBuildingHelpers.BuildValidEntityType(); ValueSegment segment1 = new ValueSegment(entityType); ValueSegment segment2 = new ValueSegment(entityType); segment1.Equals(segment2).Should().BeTrue(); }
public void EqualityIsCorrect() { IEdmEntityType entityType = ModelBuildingHelpers.BuildValidEntityType(); ValueSegment segment1 = new ValueSegment(entityType); ValueSegment segment2 = new ValueSegment(entityType); Assert.True(segment1.Equals(segment2)); }