Ejemplo n.º 1
0
            public void CheckFail(object?test)
            {
                if (test == null)
                {
                    NullableAssert.Fail();
                }

                test.GetHashCode();                 // should allow calling method on nullable variable without check
            }
Ejemplo n.º 2
0
 public void Fail_Throws()
 {
     Assert.ThrowsException <AssertFailedException>(() => NullableAssert.Fail());
 }