Пример #1
0
        public void FlushEmptyLog()
        {
            Logger.Flush();
            var messages = Logger.Get();

            Assert.NotNull(messages);
            CollectionAssert.IsEmpty(messages);
        }
Пример #2
0
        public void PushMessage()
        {
            Logger.Push("Test Message");
            var messages = Logger.Get();

            Assert.NotNull(messages);
            Assert.That(messages.Count == 1);
        }
Пример #3
0
        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);
        }