示例#1
0
        public void AdminController_Contains_Categories_Method()
        {
            var controller = new AdminController();

            ActionResult result = controller.Categories();

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(ActionResult));
        }
示例#2
0
        public void AdminController_Categories_Method_Accepts_List_Categories()
        {
            var controller = new AdminController();

            var result = controller.Categories() as ViewResult;

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result.ViewData.Model, typeof(IList<Category>));
        }