public CellSearchByIconCommand(IUiTestContext context, string iconId, string countItem, HashSet <string> inventoryId) { _context = context; _iconId = iconId; _countItem = countItem; _inventoryId = inventoryId; }
public CheckAndUseCommand(IUiTestContext context, Tuple <string, IUiTestChecker> checker, bool waitCheck, StringParam button) { _context = context; _checker = checker; _waitCheck = waitCheck; _button = button; }
public DragAndDropCommand(IUiTestContext context, StringParam inventoryIdStart, int cellNumberStart, StringParam inventoryIdEnd, int cellNumberEnd) { _context = context; _inventoryIdStart = inventoryIdStart; _cellNumberStart = cellNumberStart; _inventoryIdEnd = inventoryIdEnd; _cellNumberEnd = cellNumberEnd; }
public IEnumerator Run(IUiTestContext context) { Steps = new Steps(context); Context = context; Commands = context.Commands; Cheats = context.Cheats; var items = Condition(); while (items.MoveNext()) { _currenStep = items.Current; yield return(_currenStep.RunStep()); if (_currenStep.CurrentState == TestStepState.Fail) { yield break; } } }
public CellCountChecker(IUiTestContext context, StringParam cell, int cellIndex, int count) { _context = context; _count = count; _cellGo = context.Inventory.GetCells(cell.Item).GetCell(cellIndex); }
public UseActiveChecker(IUiTestContext context) { _context = context; _useActiveGo = context.Main.GetContent(Screens.Main.Content.UseActive.Item).GetGO(); }
public ClickCellCommand(IUiTestContext context, StringParam cellId, int cell) { _context = context; _cellId = cellId; _cell = cell; }
public WaitWorkbenchSawmillProgressCompleteCommand(IUiTestContext context) { _context = context; _waitTime = 0; }
public WaitForSecondsCommand(IUiTestContext context, float seconds) { _context = context; _seconds = seconds; }
public TreeFelledChecker(IUiTestContext context, GameObject tree) { _context = context; _tree = tree; }
public IconEmptyChecker(IUiTestContext context, StringParam cell, int cellIndex) { _context = context; _cellGo = _context.Inventory.GetCells(cell.Item).GetCell(cellIndex); }
public PlayerMoveCommand(IUiTestContext context, Vector3 endPosition) { _context = context; _endPosition = endPosition; }
public FindAndGoToSingleObjectCommand(IUiTestContext context, StringParam objectId) { _context = context; _objectId = objectId; }
public UiTestRunner(IGameManager gameManager, int testNumber, IUiTestContext context) { _gameManager = gameManager; _testNumber = testNumber; _context = context; }
public CloseDialogCommand(IUiTestContext context, string buttonCloseId) { _context = context; _buttonCloseId = buttonCloseId; }
protected abstract IEnumerator OnRun(IUiTestContext context);
public IEnumerator Run(IUiTestContext context) { yield return(OnRun(context)); }
public AndCheckCommand(IUiTestContext context, List <IUiTestChecker> checks) { _context = context; _checks = checks; }
public TreeCountChecker(IUiTestContext context, int treeCount) { _context = context; _treeCount = treeCount; _inventory = _context.Inventory.GetContent(Screens.Inventory.Content.InventoryCount.Item).GetGO(); }
public UseButtonClickCommand(IUiTestContext context, string key, string button) { Context = context; _key = key; _button = button; }
public static void SetContext(IUiTestContext context) { Context = context; }
public Steps(IUiTestContext context) { UiTestStepBase.SetContext(context); }
public WaitItemActiveButtonCommand(IUiTestContext context, string button, string buttonId) { _context = context; _button = button; _buttonId = buttonId; }
public WaitDialogCommand(IUiTestContext context, StringParam dialog, bool active) { _active = active; _context = context; _dialog = dialog; }
public UseTargetChecker(IUiTestContext context, Vector3 targetPosition) { _targetGO = context.Main.GetContent(Screens.Main.Content.UseTarget.Item).GetGO(); _targetPosition = targetPosition; }
public ScreenshotCommand(IUiTestContext context) { _context = context; }
public static IEnumerator Run(IUiTestContext context) { yield return(context.Commands.WaitForSecondsCommand(1, new ResultData <SimpleCommandResult>())); }
public Commands(IUiTestContext context) { _context = context; }