public void ExecuteCanActOnCommand() { var command = new MockCommand(); var action = new ExecuteCommand(); var getItems = new GetActionsForItem(new IActOnItem[] { action }); var actionsForItem = getItems.ActionsForItem(ResultForItem(new CommandItem(command))); Assert.NotEmpty(actionsForItem); Assert.Contains(action, actionsForItem); action.ActOn(command); Assert.True(command.Acted); }