public void can_compute_hash_code_for_a_wrapper(string value) { Assume.That(value != null); var wrapper = new SomeStringWrapper(value); // ReSharper disable once PossibleNullReferenceException wrapper.GetHashCode().Should().Be(value.GetHashCode()); }
public void hash_code_for_wrapped_null_is_zero() { var wrapper = new SomeStringWrapper(null); wrapper.GetHashCode().Should().Be(0); }