public void Debug_Assert_false_does_not_throw_when_ignore_callback_has_been_registered() { //Arrange DebugCore.SetAssertionFailedCallback((res) => AssertionResponse.Ignore); //Act DebugCore.Assert(false, "message"); //Assert Assert.Pass(); }
public void Debug_Assert_true_does_not_calls_registered_callback() { //Arrange var count = 0; DebugCore.SetAssertionFailedCallback((res) => { Interlocked.Increment(ref count); return(AssertionResponse.Ignore); }); //Act DebugCore.Assert(true, "message"); //Assert Assert.AreEqual(0, count); }