public void AsyncLog_AddLogEntry_WriteCalled() { String text = "test"; _asyncLog.AddLogEntry(text); _writer.Received().Write(Arg.Any <LogLine>()); }
private bool CheckSites() { bool success = true; foreach (IWebSiteElement el in this.mSites) { if (el.Enabled) { success = CheckSite(el) && success; } } mNextExecutionTime = DateTime.Now.AddMinutes(this.mConfig.CheckFrequency); mLog.AddLogEntry(String.Format("Next test at {0:dd/MM/yyyy HH:mm}", mNextExecutionTime)); mLog.SeparatorLine(); return(success); }