Exemplo n.º 1
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            CreateMission();
        }
Exemplo n.º 2
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            UnitTestUtils.LoadMockPlayerData();

            CreateTrainerManager();
        }
Exemplo n.º 3
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            SetStatCalculator();
            CreateMissionTask();
        }
Exemplo n.º 4
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            mMissionProposal = CreateMockMissionProposal();
            mUnit            = new MockUnit(100);
            mTestSelection   = new TaskUnitSelection(mUnit,
                                                     new MissionTaskData()
            {
                Index = TEST_TASK_INDEX, StatRequirement = TEST_STAT, PowerRequirement = POWER_REQUIREMENT
            },
                                                     mMissionProposal);

            SetPlayerDataToNotEnoughUnits();
        }
Exemplo n.º 5
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            UnitTestUtils.LoadMockPlayerData();

            UnitData data = GenericDataLoader.GetData <UnitData>(GenericDataLoader.TEST_UNIT);

            mUnit = new Unit(data,
                             new UnitProgress()
            {
                Level = 1, Trainers = 1
            },
                             new ViewModel());

            mBuilding      = BuildingUpgradeTests.GetTestBuilding();
            mBuilding.Unit = mUnit;
        }