public void GetHashCode_SourceAndOtherAreDefault_ExpectValuesAreEqual() { var source = default(TaggedUnion <RefType, StructType>); var other = new TaggedUnion <RefType?, StructType>(); var sourceHashCode = source.GetHashCode(); var otherHashCode = other.GetHashCode(); Assert.AreEqual(sourceHashCode, otherHashCode); }