public void CheckFail(object?test) { if (test == null) { NullableAssert.Fail(); } test.GetHashCode(); // should allow calling method on nullable variable without check }
public void Fail_Throws() { Assert.ThrowsException <AssertFailedException>(() => NullableAssert.Fail()); }