public void GetAllIsNotReferenced() { LogListenersContainer item = new LogListenersContainer(); List <LogListenerDecorator> list = item.GetAll(); list.Add(null); int count = item.GetAll().Count; Assert.AreEqual(1, list.Count); Assert.AreEqual(0, count); }
public void LogListenersAreEmpty() { LogListenersContainer item = new LogListenersContainer(); int count = item.GetAll().Count; Assert.AreEqual(0, count); }
public void AddLogListenersUpdatesTheList() { LogListenersContainer item = new LogListenersContainer(); item.Add(new CustomLogListener()); int count = item.GetAll().Count; Assert.AreEqual(1, count); }
public void AddNullLogListenersIsIgnored() { LogListenersContainer item = new LogListenersContainer(); item.Add(null); int count = item.GetAll().Count; Assert.AreEqual(0, count); }