public void GetReduction() { var list = LoadReductionInternal(); var source = new AddressParser(Log, FolderWithLucene); foreach (var level in list.Keys.ToArray()) { foreach (var reduction in list[level].Keys.ToArray()) { var d = source.GetReduction(new ParsedAddressPart() { Level = level, Reduction = reduction }); EqualTo(d, list[level][reduction]); } } }