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