Should we test private methods?
It's a sign
Refactor!Having realized that this is a sign, we decide to refactor it:
Now we have two smaller classes with one single responsibility each. The CreateMessage and AddMessageToDatabase methods are public because they are a part of the public contract and expressed responsibility of these classes.
Did we answer the question about whether or not to test the private methods of the Logger class? No, because the question was wrong!