public void GetHashCode_NumberPassedIntoConstructor_ReturnsNumber() { var queryPart = new SkipQueryPart(5); var expected = 5; var actual = queryPart.GetHashCode(); Assert.That(actual, Is.EqualTo(expected)); }
public void GetHashCode_NullPassedToConstructor_ReturnsZero() { var queryPart = new SkipQueryPart(null); var expected = 0; var actual = queryPart.GetHashCode(); Assert.That(actual, Is.EqualTo(expected)); }
public void GetHashCode_NoParameterConstructorUsed_ReturnsZero() { var queryPart = new SkipQueryPart(); var expected = 0; var actual = queryPart.GetHashCode(); Assert.That(actual, Is.EqualTo(expected)); }