public void AboutTest()
 {
     var controller = new HomeController();
     var result = controller.About() as ViewResult;
     Assert.IsNotNull(result, "Should have returned a ViewResult");
     Assert.AreEqual("About", result.ViewName);
 }
        public void BuildCitiesTest()
        {
            var controller = new HomeController();
            var result = controller.BuildCities() as ViewResult;

            // ** Assert view ain't null **//
            Assert.IsNotNull(result, "Should have returned a ViewResult");

            //** Assert Cities are passed as IEnumerable **//
            var model = result.ViewData.Model as IEnumerable<City>;
            Assert.IsNotNull(model, "Model should have been type of IEnumerable<City>");

            //** double check **//
            Assert.IsInstanceOfType(result.ViewData.Model, typeof(IEnumerable<City>));
        }
        public void QueryMuseumDBTest()
        {
            var controller = new HomeController();
            var result = controller.QueryMuseumDB() as ViewResult;

            // ** Assert view ain't null **//
            Assert.IsNotNull(result, "Should have returned a ViewResult");

            //** Assert Museums are passed as IEnumerable **//
            var model = result.ViewData.Model as IEnumerable<Museum>;
            Assert.IsNotNull(model, "Model should have been type of IEnumerable<Museum>");
        }
        public void ShowCitiesGraphicallyTest()
        {
            var controller = new HomeController();
            var result = controller.ShowCitiesGraphically() as ViewResult;

            // ** Assert view ain't null **//
            Assert.IsNotNull(result, "Should have returned a ViewResult");

            //** Assert Cities are passed as IEnumerable **//
            var model = result.ViewData.Model as IEnumerable<City>;
            Assert.IsNotNull(model, "Model should have been type of IEnumerable<City>");
        }
 /// <summary>
 ///A test for HomeController Constructor
 ///</summary>
 public void HomeControllerConstructorTest()
 {
     HomeController target = new HomeController();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }