public void Edit_ReturnsViewResult_WithATodo_WhenSucceeded() { var result = controller.Edit(1); var viewResult = Assert.IsType <ViewResult>(result); Assert.IsAssignableFrom <Todo>(viewResult.Model); }
public void Edit_ReturnsViewResult_WithATodo_WhenSucceeded() { var result = controller.Edit(1); var viewResult = Assert.IsType <ViewResult>(result); Assert.IsAssignableFrom <Todo>(viewResult.Model); }