public static void LoadPlatformsAndCategories() { var platformsJson = GetResourceText("Data.Platforms.json"); var platforms = JsonConvert.DeserializeObject <List <Platform> >(platformsJson); Platforms.AddRange(platforms); var categoriesJson = GetResourceText("Data.Categories.json"); var categories = JsonConvert.DeserializeObject <List <MainGroup> >(categoriesJson); Categories.AddRange(categories); }
/// <summary> /// 配置需要测试的平台 /// </summary> /// <param name="platform">平台</param> public void SetTestPlatform(params TestPlatform[] platform) { Platforms.AddRange(platform); }