I’m trying to do TDD, I’m not clear on how to do it for logging logic that I write.
Fox example, what would be a test for following:
if(importantCriteriaNotMet)
{
log.Info("My message here");
}
How would I test that logging code?
Should I be testing it?
If log is of ILog type: