コード例 #1
0
        public void Edit_ReturnsCorrectActionType_RedirectToActionResult()
        {
            //Arrange
            StylistsController controller = new StylistsController();

            //Act
            DateTime      hireDate = new DateTime(2019, 1, 1);
            IActionResult view     = controller.EditPost(1, "Jane Doe", hireDate);

            //Assert
            Assert.IsInstanceOfType(view, typeof(RedirectToActionResult));
        }