grzesiek-galezowski / nscan

dotNet Structural Constraints ANalyzer
https://grzesiek-galezowski.github.io/nscan/
MIT License
11 stars 1 forks source link

Exception when collecting classes #13

Closed grzesiek-galezowski closed 3 years ago

grzesiek-galezowski commented 3 years ago

On Any.sln:

System.ArgumentException: An item with the same key has already been added. Key: TddXt.TypeResolution.FallbackTypeGenerator at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at System.Linq.Enumerable.ToDictionary[TSource,TKey](List1 source, Func2 keySelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable1 source, Func2 keySelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable1 source, Func2 keySelector) at NScan.Adapter.ReadingCSharpSolution.ReadingCSharpSourceCode.ClassGatheringVisitor.ToDictionary() at NScan.Adapter.ReadingCSharpSolution.ReadingCSharpSourceCode.CSharpFileSyntaxTree.GetClassDeclarationSignatures() at NScan.Adapter.ReadingCSharpSolution.ReadingCSharpSourceCode.CSharpFileSyntaxTree.<>c.b__8_0(CSharpFileSyntaxTree syntax) at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector) at NScan.Adapter.ReadingCSharpSolution.ReadingCSharpSourceCode.CSharpFileSyntaxTree.GetClassDeclarationSignaturesFromFiles(IEnumerable1 cSharpSyntaxs) at NScan.Adapter.ReadingCSharpSolution.ReadingProjects.SourceCodeFilePaths.LoadFilesInto(XmlProjectDataAccess projectAccess) at NScan.Adapter.ReadingCSharpSolution.ReadingProjects.ProjectPaths.LoadXmlProject(AbsoluteFilePath projectFilePath) at NScan.Adapter.ReadingCSharpSolution.ReadingProjects.ProjectPaths.<LoadXmlProjectFromPath>b__8_0(AbsoluteFilePath path) at System.Linq.Enumerable.SelectListIterator2.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at NScan.Adapter.ReadingCSharpSolution.ReadingProjects.ProjectPaths.LoadXmlProjects() at TddXt.NScan.NScanMain.ReadCsharpProjects(InputArgumentsDto inputArguments, INScanSupport support) at TddXt.NScan.NScanMain.Run(InputArgumentsDto inputArguments, INScanOutput output, INScanSupport support) Unhandled exception. FluentAssertions.Execution.AssertionFailedException: Expected value to be 0, but found -2. at FluentAssertions.Execution.FallbackTestFramework.Throw(String message) at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at FluentAssertions.Execution.AssertionScope.FailWith(Func1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) at FluentAssertions.Numeric.NumericAssertions`1.Be(T expected, String because, Object[] becauseArgs) at $.

$(String[] args) in C:\Users\Hyperbook\Documents\GitHub\any\src\netstandard2.0\BuildScript\Program.cs:line 25