public void ReturnsZero() { var source = new None(); var hashCode = source.GetHashCode(); Assert.Equal(0, hashCode); }
public void WhenNone_ReturnsSameAsNone() { var source = Maybe <object> .None(); var none = new None(); Assert.Equal(none.GetHashCode(), source.GetHashCode()); }
public void IsEqualToHashCodeOfOtherNone() { var source = new None(); var other = new None(); var sourceHashCode = source.GetHashCode(); var otherHashCode = other.GetHashCode(); Assert.Equal(sourceHashCode, otherHashCode); }