public IDictionary <string, VisData> CreateGroupedVisDependantData(IDictionary <string, VisData> techData, ObjectsDependantOnTechs objectsDependantOnTechs,
                                                                           IEnumerable <ParseTarget> parseTargets)
        {
            Dictionary <string, VisNode> prereqTechNodeLookup =
                techData.Values.Select(x => x.nodes).SelectMany(x => x).Distinct(IEqualityComparerExtensions.Create <VisNode>(x => x.id)).ToDictionary(x => x.id);
            var result = new Dictionary <string, VisData>();

            objectsDependantOnTechs.ModGroups.ForEach(x => result[x] = CreateDependantDataForModGroup(x, prereqTechNodeLookup, objectsDependantOnTechs, parseTargets));
            return(result);
        }
Esempio n. 2
0
        public void GetHashCodeFuncWithNullThis()
        {
            var e = Assert.Throws <ArgumentNullException>(() => IEqualityComparerExtensions.GetHashCodeFunc <object>(null));

            Assert.Equal("comparer", e.ParamName);
        }