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); }
public void GetLogEntries_withNoParentReturnsNull() { var logged = new OutlookLogger(EventViewSource, null); Assert.IsNull(logged.GetLogEntries(10)); }