예제 #1
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            CreateMission();
        }
예제 #2
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            UnitTestUtils.LoadMockPlayerData();

            CreateTrainerManager();
        }
예제 #3
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            SetStatCalculator();
            CreateMissionTask();
        }
예제 #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();
        }
예제 #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;
        }