コード例 #1
0
        public void IndexViewEqualIndexCshtml()
        {
            BoardsController controller = new BoardsController();

            ViewResult result = controller.Index() as ViewResult;

            Assert.AreEqual("Index", result.ViewName);
        }
コード例 #2
0
        public void IndexViewResultNotNull()
        {
            BoardsController controller = new BoardsController();

            ViewResult result = controller.Index() as ViewResult;

            Assert.IsNotNull(result);
        }