示例#1
0
        public void Admin_Should_return_expected_view()
        {
            var controller = new QuizController(null);
            var result     = controller.Admin() as ViewResult;

            // If fetching a page based on the Action name, I.E "Index", thus not using any arguments within the "View()" method
            // the ViewName property in the ViewResult will be null
            Assert.AreEqual(null, result?.ViewName);
        }