public void SurveyController_NewSurveyAction_ReturnNewSurveyView() { //ParkSqlDAL parkDAL = new ParkSqlDAL(ConfigurationManager.ConnectionStrings["ParkWeather"].ConnectionString); //WeatherSqlDAL weatherDAL = new WeatherSqlDAL(ConfigurationManager.ConnectionStrings["ParkWeather"].ConnectionString); SurveySqlDAL surveyDAL = new SurveySqlDAL(ConfigurationManager.ConnectionStrings["ParkWeather"].ConnectionString); //Arrange SurveyController controller = new SurveyController(surveyDAL); //Act ViewResult result = controller.NewSurvey() as ViewResult; //Assert Assert.AreEqual("NewSurvey", result.ViewName); }