internal static void TestSndComparer(TestContext tc, BlamVersion game, string dir, string[] map_names) { int map_count = map_names.Length; List <MapSndComparer> maps = new List <MapSndComparer>(map_count); var thread_code = new System.Threading.WaitCallback(delegate(object param) { var args = param as CacheFileOutputInfoArgs; MapSndComparer cmp = SndComparerMethod(args); lock (maps) maps.Add(cmp); args.SignalFinished(); }); CacheFileOutputInfoArgs.TestThreadedMethod(tc, thread_code, game, dir, map_names); SndComparer snd_cmp = new SndComparer(map_count); snd_cmp.PreProcess(maps, map_count); snd_cmp.ScanForDiffs(); snd_cmp.OutputDiffs(BuildResultPath(kTestResultsPath, game, null, "sound_cmp_results", "txt")); }
internal static void TestSndComparer(TestContext tc, BlamVersion game, string dir, string[] map_names) { int map_count = map_names.Length; List<MapSndComparer> maps = new List<MapSndComparer>(map_count); var thread_code = new System.Threading.WaitCallback(delegate(object param) { var args = param as CacheFileOutputInfoArgs; MapSndComparer cmp = SndComparerMethod(args); lock (maps) maps.Add(cmp); args.SignalFinished(); }); CacheFileOutputInfoArgs.TestThreadedMethod(tc, thread_code, game, dir, map_names); SndComparer snd_cmp = new SndComparer(map_count); snd_cmp.PreProcess(maps, map_count); snd_cmp.ScanForDiffs(); snd_cmp.OutputDiffs(BuildResultPath(kTestResultsPath, game, null, "sound_cmp_results", "txt")); }