Example #1
0
        public void Test_Index_Return_View()
        {
            var controller = new BoardgamesController();
            var result     = controller.Index() as ViewResult;

            Assert.IsNotNull(result);
        }
Example #2
0
        public void Test_Edit_Return_View()
        {
            var controller = new BoardgamesController();
            var game       = db.Boardgames.FirstOrDefault();
            var result     = controller.Edit(game.Id) as ViewResult;

            Assert.IsNotNull(result);
        }