Ejemplo n.º 1
0
        public void GetLogEntries_callsParent(int max)
        {
            var ilogger = new Mock <ILogger>();
            var logged  = new OutlookLogger(EventViewSource, ilogger.Object);

            logged.GetLogEntries(max);
            ilogger.Verify(m => m.GetLogEntries(max), Times.Once);
        }
Ejemplo n.º 2
0
        public void GetLogEntries_withNoParentReturnsNull()
        {
            var logged = new OutlookLogger(EventViewSource, null);

            Assert.IsNull(logged.GetLogEntries(10));
        }