public void BeforeTest() { UnitTestUtils.LoadOfflineData(); OfflineBackend backend = (OfflineBackend)BackendManager.Backend; mMapData = backend.GetPlayerData_Offline <MapData>(BackendConstants.MAP_BASE); mMapUnderTest = new Map(mMapData); }
public void BeforeTest() { UnitTestUtils.LoadOfflineData(); OfflineBackend backend = (OfflineBackend)BackendManager.Backend; MapData mapData = backend.GetPlayerData_Offline <MapData>(BackendConstants.MAP_BASE); mMapAreaData = mapData.Areas[0]; mMissionProgress = new SingleMissionProgress(); mMissionProgress.Completed = false; mAreaUnderTest = new MapArea(mMapAreaData, mMissionProgress); }