public void IsTrue_PropagatesErrorMessage()
        {
            AssertFailedException exception = Assert.ThrowsException <AssertFailedException>(
                () => NullableAssert.IsTrue(false, s_message, s_parameters));

            StringAssert.Contains(exception.Message, s_expectedMessage);
        }
 public void IsTrue_IfTrue_NotThrows()
 {
     NullableAssert.IsTrue(true);
 }
 public void IsTrue_IfFalse_Throws()
 {
     Assert.ThrowsException <AssertFailedException>(() => NullableAssert.IsTrue(false));
 }
 public void CheckIsTrue(object?test)
 {
     NullableAssert.IsTrue(test != null);
     test.GetHashCode();                 // should allow calling method on nullable variable without check
 }