public void FieldUnderCheckerTest()
        {
            TurnSystem.InitializeData();

            Field field = FieldManager.FieldUnderChecker(CheckerManager.BrownCheckers[0].GameObj);

            GameMechanics.ResetGame();

            Assert.AreEqual(GameObject.Find("Black (1)"), field.GameObject);
        }
Example #2
0
        public void MoveTest2()
        {
            TurnSystem.InitializeData();

            GameMechanics.Move(CheckerManager.BrownCheckers[0].GameObj, new Vector3(2, 0, 4));
            int state = FieldManager.FieldUnderChecker(CheckerManager.BrownCheckers[0].GameObj).State;

            GameMechanics.ResetGame();

            Assert.AreEqual(2, state);
        }
        public void ResetFieldStatesTest()
        {
            TurnSystem.InitializeData();

            FieldManager.ModifyFieldStateUnder(CheckerManager.BrownCheckers[0].GameObj, 3);
            FieldManager.ResetFieldStates();
            int state = FieldManager.FieldUnderChecker(CheckerManager.BrownCheckers[0].GameObj).State;

            GameMechanics.ResetGame();

            Assert.AreEqual(2, state);
        }
        public void FieldUnderCheckerTest2()
        {
            TurnSystem.InitializeData();

            GameMechanics.Move(CheckerManager.BrownCheckers[10].GameObj, new Vector3(2, 0, 4));
            Field field = FieldManager.FieldUnderChecker(CheckerManager.BrownCheckers[10].GameObj);

            CheckerManager.ResetCheckersPosition();
            FieldManager.ResetFieldStates();

            GameMechanics.ResetGame();

            Assert.AreEqual(GameObject.Find("Black (16)"), field.GameObject);
        }
        public void FieldWithGameObjectTest()
        {
            TurnSystem.InitializeData();

            GameMechanics.Move(CheckerManager.BrownCheckers[10].GameObj, new Vector3(2, 0, 4));
            Field field  = FieldManager.FieldUnderChecker(CheckerManager.BrownCheckers[10].GameObj);
            Field field2 = FieldManager.FieldWithGameObject(field.GameObject);

            CheckerManager.ResetCheckersPosition();
            FieldManager.ResetFieldStates();

            GameMechanics.ResetGame();

            Assert.AreEqual(FieldManager.BlackFieldsBoard[15], field2);
        }