public void GetHashCodeSuccess() { var compare = new IndicatorEntityComparer(); var result = compare.GetHashCode(new IndicatorEntity() { Id = 3 }); Assert.Equal(3, result); }
public void CompareSuccess() { var compare = new IndicatorEntityComparer(); var result = compare.Equals(new IndicatorEntity() { Id = 2 }, new IndicatorEntity() { Id = 3 }); Assert.False(result); result = compare.Equals(new IndicatorEntity() { Id = 2 }, new IndicatorEntity() { Id = 2 }); Assert.True(result); }