Browse Source

Fix build.

newNRvisualizers
Daniel Grunwald 13 years ago
parent
commit
15b741f661
  1. 4
      src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestClass.cs
  2. 4
      src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestMethod.cs

4
src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestClass.cs

@ -70,7 +70,9 @@ namespace ICSharpCode.UnitTesting @@ -70,7 +70,9 @@ namespace ICSharpCode.UnitTesting
public ITypeDefinition Resolve()
{
return Resolve(SD.ParserService.GetCurrentSolutionSnapshot());
ICompilation compilation = SD.ParserService.GetCompilation(parentProject.Project);
IType type = compilation.MainAssembly.GetTypeDefinition(fullTypeName);
return type.GetDefinition();
}
public ITypeDefinition Resolve(ISolutionSnapshotWithProjectMapping solutionSnapshot)

4
src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestMethod.cs

@ -81,7 +81,9 @@ namespace ICSharpCode.UnitTesting @@ -81,7 +81,9 @@ namespace ICSharpCode.UnitTesting
public IMethod Resolve()
{
return Resolve(SD.ParserService.GetCurrentSolutionSnapshot());
ICompilation compilation = SD.ParserService.GetCompilation(parentProject.Project);
IMethod resolvedMethod = method.Resolve(new SimpleTypeResolveContext(compilation.MainAssembly));
return resolvedMethod;
}
public IMethod Resolve(ISolutionSnapshotWithProjectMapping solutionSnapshot)

Loading…
Cancel
Save