Пример #1
0
        public void Index()
        {
            HomeController controller = new HomeController();

            ViewResult result = controller.Index() as ViewResult;

            Assert.IsNotNull(result);
        }
Пример #2
0
        public void About()
        {
            HomeController controller = new HomeController();

            ViewResult result = controller.About() as ViewResult;

            Assert.NotNull(result);
            Assert.NotNull(result.ViewBag);
            // TODO: Hard coded strings
            Assert.AreEqual("Simple application for integrating with NASA API's and demonstrating basic concepts", result.ViewBag.Message);
        }