public void GetHashCode_BothNull_HashCodesEqual() { var value1 = new NullableValue <int>(); var value2 = new NullableValue <int>(); Assert.That(value1.GetHashCode(), Is.EqualTo(value2.GetHashCode())); }
public void GetHashCode_DifferentValuesOneIsNull_HashCodesNotEqual() { var value1 = new NullableValue <int>(); var value2 = new NullableValue <int>(1); Assert.That(value1.GetHashCode(), Is.Not.EqualTo(value2.GetHashCode())); }
public void GetHashCode_BothNull_HashCodesEqual() { var value1 = new NullableValue<int>(); var value2 = new NullableValue<int>(); Assert.That(value1.GetHashCode(), Is.EqualTo(value2.GetHashCode())); }
public void GetHashCode_DifferentValuesOneIsNull_HashCodesNotEqual() { var value1 = new NullableValue<int>(); var value2 = new NullableValue<int>(1); Assert.That(value1.GetHashCode(), Is.Not.EqualTo(value2.GetHashCode())); }