public void Application_started_logged() { var mockLog = new Mock <ILog <SampleApplication> >(); var application = new SampleApplication(mockLog.Object); application.Start(); mockLog.Verify(x => x.LogInformation("Application started"), Times.Once); }