public void ActionIsExecuted() { ControllerExecutor executor = new ControllerExecutor(controller, testContext); executor.Execute(executor.SelectAction()); Assert.IsTrue(controller.wasRun, "ControllerExecutor failed to execute the action"); }
public void ActionIsSelectedBasedOnUrlActionPiece() { ControllerExecutor executor = new ControllerExecutor(controller, testContext); ActionExecutor actionExec = executor.SelectAction(); Assert.IsNotNull(actionExec); Assert.AreEqual(ActionType.Method, actionExec.ActionType); Assert.AreEqual("Index", actionExec.Name); }
public void ActionIsSelectedAndRun() { ControllerExecutor executor = new ControllerExecutor(controller, testContext); ActionExecutor actionExec = executor.SelectAction(); Assert.IsNotNull(actionExec); Assert.AreEqual(ActionType.Method, actionExec.ActionType); Assert.AreEqual("Index", actionExec.Name); executor.Execute(actionExec); Assert.IsTrue(controller.wasRun); }