public void ControllerTest() { //Arrange - Create the controller ExampleController target = new ExampleController(); //Act - call the action method ViewResult result = target.Home(); //Assert Assert.AreEqual("Home", result.ViewName); }