public void AddStylist_ReturnsCorrectActionType_RedirectToActionResult() { SpecialtiesController controller = new SpecialtiesController(); IActionResult view = controller.AddStylist(1, 1); Assert.IsInstanceOfType(view, typeof(RedirectToActionResult)); }
public void AddStylist_RedirectsToCorrectAction_Show() { SpecialtiesController controller = new SpecialtiesController(); RedirectToActionResult actionResult = controller.AddStylist(1, 1) as RedirectToActionResult; string result = actionResult.ActionName; Assert.AreEqual(result, "Show"); }