コード例 #1
0
        public void New_ReturnsCorrectView_True()
        {
            SpecialtiesController controller = new  SpecialtiesController();
            ActionResult          newView    = controller.New();

            Assert.IsInstanceOfType(newView, typeof(ViewResult));
        }
コード例 #2
0
        public void CreateSpecialty_ReturnsCorrectSpecialtiesView_True()
        {
            //Arrange
            SpecialtiesController controller = new SpecialtiesController();

            //Act
            ActionResult indexView = controller.New();

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