Пример #1
0
        public void AddNullLogListenersIsIgnored()
        {
            LogListenersContainer item = new LogListenersContainer();

            item.Add(null);

            int count = item.GetAll().Count;

            Assert.AreEqual(0, count);
        }
Пример #2
0
        public void AddLogListenersUpdatesTheList()
        {
            LogListenersContainer item = new LogListenersContainer();

            item.Add(new CustomLogListener());

            int count = item.GetAll().Count;

            Assert.AreEqual(1, count);
        }
Пример #3
0
        public void AddNullLogListenersDoesNotThrowException()
        {
            LogListenersContainer item = new LogListenersContainer();

            item.Add(null);
        }