예제 #1
0
        public void ClearLogEntries_callsParent(long olderThan)
        {
            var ilogger = new Mock <ILogger>();
            var logged  = new OutlookLogger(EventViewSource, ilogger.Object);

            logged.ClearLogEntries(olderThan);
            ilogger.Verify(m => m.ClearLogEntries(olderThan), Times.Once);
        }
예제 #2
0
        public void ClearLogEntries_withNoParentReturnsFalse()
        {
            var logged = new OutlookLogger(EventViewSource, null);

            Assert.IsFalse(logged.ClearLogEntries(10));
        }