diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-12-02 12:55:28 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-12-02 12:55:28 +0400 |
commit | 9f9cdee250d3a8e7e9b66488586c48011fa506ce (patch) | |
tree | 38604f02d6a347befd2b2746de6934f0ba54518d /main/src/addins/NUnit | |
parent | 53f94e824373911043765358880ba066b3dac06c (diff) |
[NUnit] Track nrefactory api changes.
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Services/NUnitProjectTestSuite.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/NUnit/Services/NUnitProjectTestSuite.cs b/main/src/addins/NUnit/Services/NUnitProjectTestSuite.cs index 169423848e..e48ae44e63 100644 --- a/main/src/addins/NUnit/Services/NUnitProjectTestSuite.cs +++ b/main/src/addins/NUnit/Services/NUnitProjectTestSuite.cs @@ -63,7 +63,7 @@ namespace MonoDevelop.NUnit protected override SourceCodeLocation GetSourceCodeLocation (string fullClassName, string methodName) { - var ctx = TypeSystemService.GetProjectContext (project); + var ctx = TypeSystemService.GetCompilation (project); string ns, name; int idx = fullClassName.LastIndexOf ('.'); if (idx < 0) { @@ -73,11 +73,11 @@ namespace MonoDevelop.NUnit ns = fullClassName.Substring (0, idx); name = fullClassName.Substring (idx + 1); } - var cls = ctx.GetTypeDefinition (ns, name, 0, StringComparer.Ordinal); + var cls = ctx.MainAssembly.GetTypeDefinition (ns, name, 0); if (cls == null) return null; - foreach (var met in cls.GetMethods (ctx)) { + foreach (var met in cls.GetMethods ()) { if (met.Name == methodName) return new SourceCodeLocation (cls.GetDefinition ().Region.FileName, met.Region.BeginLine, met.Region.BeginColumn); } |