diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-08-29 01:22:33 +0400 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-08-29 01:22:45 +0400 |
commit | 9429712ebd1eaaa0c4ffbbf1458c2cceea04b6db (patch) | |
tree | b8144f788121337bfdee055f6d43267c800458a0 /ICSharpCode.NRefactory.Tests | |
parent | ff0393ce92e1adf0365a357cbf9eb9c9a20bf845 (diff) |
Merge changes from SharpDevelop to NRefactory
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r-- | ICSharpCode.NRefactory.Tests/Analysis/SymbolCollectorTests.cs | 2 | ||||
-rw-r--r-- | ICSharpCode.NRefactory.Tests/CSharp/Resolver/FindReferencesTest.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ICSharpCode.NRefactory.Tests/Analysis/SymbolCollectorTests.cs b/ICSharpCode.NRefactory.Tests/Analysis/SymbolCollectorTests.cs index 8bf4338f..6ca61614 100644 --- a/ICSharpCode.NRefactory.Tests/Analysis/SymbolCollectorTests.cs +++ b/ICSharpCode.NRefactory.Tests/Analysis/SymbolCollectorTests.cs @@ -60,7 +60,7 @@ namespace ICSharpCode.NRefactory.Analysis col.IncludeOverloads = includeOverloads; col.GroupForRenaming = true; - var result = col.GetRelatedSymbols (new TypeGraph (compilation.Assemblies), + var result = col.GetRelatedSymbols (new Lazy<TypeGraph>(() => new TypeGraph (compilation.Assemblies)), symbol); if (offsets.Count != result.Count()) { foreach (var a in result) diff --git a/ICSharpCode.NRefactory.Tests/CSharp/Resolver/FindReferencesTest.cs b/ICSharpCode.NRefactory.Tests/CSharp/Resolver/FindReferencesTest.cs index e9cdc98d..8a1470f2 100644 --- a/ICSharpCode.NRefactory.Tests/CSharp/Resolver/FindReferencesTest.cs +++ b/ICSharpCode.NRefactory.Tests/CSharp/Resolver/FindReferencesTest.cs @@ -469,7 +469,7 @@ namespace Foo { var sym = GetSymbol(compilation, fullyQualifiedName); Assert.NotNull(sym); - var graph = new TypeGraph(compilation.Assemblies); + var graph = new Lazy<TypeGraph>(() => new TypeGraph(compilation.Assemblies)); var col = new SymbolCollector(); col.IncludeOverloads = includeOverloads; col.GroupForRenaming = true; |