Esempio n. 1
0
 public CellSearchByIconCommand(IUiTestContext context, string iconId, string countItem, HashSet <string> inventoryId)
 {
     _context     = context;
     _iconId      = iconId;
     _countItem   = countItem;
     _inventoryId = inventoryId;
 }
Esempio n. 2
0
 public CheckAndUseCommand(IUiTestContext context, Tuple <string, IUiTestChecker> checker, bool waitCheck, StringParam button)
 {
     _context   = context;
     _checker   = checker;
     _waitCheck = waitCheck;
     _button    = button;
 }
Esempio n. 3
0
 public DragAndDropCommand(IUiTestContext context, StringParam inventoryIdStart, int cellNumberStart, StringParam inventoryIdEnd, int cellNumberEnd)
 {
     _context          = context;
     _inventoryIdStart = inventoryIdStart;
     _cellNumberStart  = cellNumberStart;
     _inventoryIdEnd   = inventoryIdEnd;
     _cellNumberEnd    = cellNumberEnd;
 }
Esempio n. 4
0
        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;
                }
            }
        }
Esempio n. 5
0
 public CellCountChecker(IUiTestContext context, StringParam cell, int cellIndex, int count)
 {
     _context = context;
     _count   = count;
     _cellGo  = context.Inventory.GetCells(cell.Item).GetCell(cellIndex);
 }
Esempio n. 6
0
 public UseActiveChecker(IUiTestContext context)
 {
     _context     = context;
     _useActiveGo = context.Main.GetContent(Screens.Main.Content.UseActive.Item).GetGO();
 }
Esempio n. 7
0
 public ClickCellCommand(IUiTestContext context, StringParam cellId, int cell)
 {
     _context = context;
     _cellId  = cellId;
     _cell    = cell;
 }
Esempio n. 8
0
 public WaitWorkbenchSawmillProgressCompleteCommand(IUiTestContext context)
 {
     _context  = context;
     _waitTime = 0;
 }
Esempio n. 9
0
 public WaitForSecondsCommand(IUiTestContext context, float seconds)
 {
     _context = context;
     _seconds = seconds;
 }
Esempio n. 10
0
 public TreeFelledChecker(IUiTestContext context, GameObject tree)
 {
     _context = context;
     _tree    = tree;
 }
Esempio n. 11
0
 public IconEmptyChecker(IUiTestContext context, StringParam cell, int cellIndex)
 {
     _context = context;
     _cellGo  = _context.Inventory.GetCells(cell.Item).GetCell(cellIndex);
 }
Esempio n. 12
0
 public PlayerMoveCommand(IUiTestContext context, Vector3 endPosition)
 {
     _context     = context;
     _endPosition = endPosition;
 }
Esempio n. 13
0
 public FindAndGoToSingleObjectCommand(IUiTestContext context, StringParam objectId)
 {
     _context  = context;
     _objectId = objectId;
 }
Esempio n. 14
0
 public UiTestRunner(IGameManager gameManager, int testNumber, IUiTestContext context)
 {
     _gameManager = gameManager;
     _testNumber  = testNumber;
     _context     = context;
 }
Esempio n. 15
0
 public CloseDialogCommand(IUiTestContext context, string buttonCloseId)
 {
     _context       = context;
     _buttonCloseId = buttonCloseId;
 }
Esempio n. 16
0
 protected abstract IEnumerator OnRun(IUiTestContext context);
Esempio n. 17
0
 public IEnumerator Run(IUiTestContext context)
 {
     yield return(OnRun(context));
 }
Esempio n. 18
0
 public AndCheckCommand(IUiTestContext context, List <IUiTestChecker> checks)
 {
     _context = context;
     _checks  = checks;
 }
Esempio n. 19
0
 public TreeCountChecker(IUiTestContext context, int treeCount)
 {
     _context   = context;
     _treeCount = treeCount;
     _inventory = _context.Inventory.GetContent(Screens.Inventory.Content.InventoryCount.Item).GetGO();
 }
Esempio n. 20
0
 public UseButtonClickCommand(IUiTestContext context, string key, string button)
 {
     Context = context;
     _key    = key;
     _button = button;
 }
Esempio n. 21
0
 public static void SetContext(IUiTestContext context)
 {
     Context = context;
 }
Esempio n. 22
0
 public Steps(IUiTestContext context)
 {
     UiTestStepBase.SetContext(context);
 }
Esempio n. 23
0
 public WaitItemActiveButtonCommand(IUiTestContext context, string button, string buttonId)
 {
     _context  = context;
     _button   = button;
     _buttonId = buttonId;
 }
Esempio n. 24
0
 public WaitDialogCommand(IUiTestContext context, StringParam dialog, bool active)
 {
     _active  = active;
     _context = context;
     _dialog  = dialog;
 }
Esempio n. 25
0
 public UseTargetChecker(IUiTestContext context, Vector3 targetPosition)
 {
     _targetGO       = context.Main.GetContent(Screens.Main.Content.UseTarget.Item).GetGO();
     _targetPosition = targetPosition;
 }
Esempio n. 26
0
 public ScreenshotCommand(IUiTestContext context)
 {
     _context = context;
 }
Esempio n. 27
0
 public static IEnumerator Run(IUiTestContext context)
 {
     yield return(context.Commands.WaitForSecondsCommand(1, new ResultData <SimpleCommandResult>()));
 }
Esempio n. 28
0
 public Commands(IUiTestContext context)
 {
     _context = context;
 }