public void Should_log_when_executed() { //Arrange var logger = new FakeLogger(); HelloController controller = new HelloController(logger); //Act controller.SayHello(); //Assert Assert.IsNotNull(logger.LogResult); }