Example #1
0
        public void Show_ReturnsCorrectView_True()
        {
            SpecialtiesController controller = new  SpecialtiesController();
            ActionResult          showView   = controller.Show(1);

            Assert.IsInstanceOfType(showView, typeof(ViewResult));
        }
        public void Show_HasCorrectModelType_Dictionary()
        {
            SpecialtiesController controller = new SpecialtiesController();
            ViewResult            showView   = controller.Show(1) as ViewResult;
            var result = showView.ViewData.Model;

            Assert.IsInstanceOfType(result, typeof(Dictionary <string, object>));
        }
Example #3
0
        public void Show_ReturnsCorrectView_True()
        {
            //Arrange
            SpecialtiesController controller = new SpecialtiesController();

            //Act
            ActionResult newView = controller.Show(1);

            //Assert
            Assert.IsInstanceOfType(newView, typeof(ViewResult));
        }