public void Write_To_The_Log() { var logger = new FakeLogger(); var controller = new HelloController(logger); controller.Execute(new FakeRequestContext()); Assert.IsNotNull(logger.LogResult); Assert.IsTrue(logger.LogResult.Length > 0); }