private static void CheckThingRegisteredTwice(Map map) { foreach (KeyValuePair <Region, List <Thing> > expectedLister in Autotests_RegionListers.expectedListers) { Autotests_RegionListers.CheckDuplicates(expectedLister.Value, expectedLister.Key, true); } foreach (Region allRegion in map.regionGrid.AllRegions) { Autotests_RegionListers.CheckDuplicates(allRegion.ListerThings.AllThings, allRegion, false); } }
private static void CheckThingRegisteredTwice(Map map) { foreach (KeyValuePair <Region, List <Thing> > current in Autotests_RegionListers.expectedListers) { Autotests_RegionListers.CheckDuplicates(current.Value, current.Key, true); } foreach (Region current2 in map.regionGrid.AllRegions) { Autotests_RegionListers.CheckDuplicates(current2.ListerThings.AllThings, current2, false); } }