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