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