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

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