Is there a way to print out a supplemental error message with the Verify macro in FakeIt?
TEST_METHOD(SleepTimerShouldBeSetFor50us)
{
Mock<ISleepTimer> sleepTimerSpy;
When(Method(sleepTimerSpy, SetTimeout)).Return();
/*Other test setup and execution code... */
Verify(Method(sleepTimerSpy, SetTimeout).Using( _, 50 us));
}
I would like to print out an error message if Verify fails. I've been using Logger::WriteMessage as a way to print out error messages, but that will output no matter what.
Aucun commentaire:
Enregistrer un commentaire