public void GetHashCode_OtherLagItemWithDifferentElement_ReturnsDifferentValue() { var value1 = new LagItem <int>(42, 17); var value2 = new LagItem <int>(41, 17); Assert.That(value2.GetHashCode(), Is.Not.EqualTo(value1.GetHashCode())); }
public void GetHashCode_OtherLagItemWithSameValues_ReturnsSameValue() { var value1 = new LagItem <int>(42, 17); var value2 = new LagItem <int>(42, 17); Assert.That(value2.GetHashCode(), Is.EqualTo(value1.GetHashCode())); }