Ejemplo n.º 1
0
        public void CreateForm_ReturnsCorrectView_True()
        {
            StylistsController controller = new StylistsController();
            ActionResult       createView = controller.CreateForm();

            Assert.IsInstanceOfType(createView, typeof(ViewResult));
        }
Ejemplo n.º 2
0
        public void CreateForm_ReturnsCorrectView_True()
        {
            //Arrange
            StylistsController controller = new StylistsController();

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

            //Assert
            Assert.IsInstanceOfType(indexView, typeof(ViewResult));
        }
        public void CreateForm_ReturnsTheHTMLIfItsTrue_True()
        {
            //Arrange
            StylistsController controller = new StylistsController();

            //Act
            IActionResult createFormView = controller.CreateForm();
            ViewResult    result         = createFormView as ViewResult;

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