public void FlushEmptyLog() { Logger.Flush(); var messages = Logger.Get(); Assert.NotNull(messages); CollectionAssert.IsEmpty(messages); }
public void PushMessage() { Logger.Push("Test Message"); var messages = Logger.Get(); Assert.NotNull(messages); Assert.That(messages.Count == 1); }
public void GetMessages() { var messages = Logger.Get(); Assert.NotNull(messages); CollectionAssert.IsEmpty(messages); Logger.Push("Test Message 1"); Logger.Push("Test Message 2"); Logger.Push("Test Message 3"); messages = Logger.Get(); Assert.That(messages.Count == 3); }