diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2019-02-15 21:25:10 +0300 |
---|---|---|
committer | Lluis Sanchez <llsan@microsoft.com> | 2019-02-15 21:52:56 +0300 |
commit | 2e9046725a5629d208a35e8312ad5904a05c851f (patch) | |
tree | bc87f59d35ebf88f0683dbbe39bf71c6be5fa6e4 /main/src/addins/MonoDevelop.UnitTesting | |
parent | ca94e4851759c70a3f44e6ed4d2d1f3296ed0bcf (diff) |
Track API changes
All services are now referenced from the IdeServices class
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting')
3 files changed, 7 insertions, 6 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting/Gui/TestResultsPad.cs b/main/src/addins/MonoDevelop.UnitTesting/Gui/TestResultsPad.cs index a59bbcbf71..48b4efc32f 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/Gui/TestResultsPad.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/Gui/TestResultsPad.cs @@ -141,7 +141,7 @@ namespace MonoDevelop.UnitTesting book.Pack1 (sw, true, true); outputView = new MonoDevelop.Ide.Gui.Components.LogView.LogTextView { Name = "testResultOutput" }; - outputView.ModifyFont (FontService.MonospaceFont); + outputView.ModifyFont (IdeServices.FontService.MonospaceFont); outputView.Editable = false; bold = new TextTag ("bold"); bold.Weight = Pango.Weight.Bold; @@ -745,7 +745,7 @@ namespace MonoDevelop.UnitTesting const int maxLineLength = 255; const int maxLineNumber = 255; sb.Append ("<span font='"); - sb.Append (FontService.MonospaceFontName); + sb.Append (IdeServices.FontService.MonospaceFontName); sb.Append ("'>"); using (var sr = new StringReader (result.Message)) { while (null != (curLineText = sr.ReadLine ())) { diff --git a/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestUnitTest.cs b/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestUnitTest.cs index 24a5e9dcc9..fe4b4fc3eb 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestUnitTest.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/MonoDevelop.UnitTesting.VsTest/VsTestUnitTest.cs @@ -33,6 +33,7 @@ using MonoDevelop.UnitTesting; using MonoDevelop.Ide.TypeSystem; using Microsoft.CodeAnalysis; using System.Linq; +using MonoDevelop.Ide; namespace MonoDevelop.UnitTesting.VsTest { @@ -64,7 +65,7 @@ namespace MonoDevelop.UnitTesting.VsTest if (!string.IsNullOrEmpty (test.CodeFilePath)) sourceCodeLocation = new SourceCodeLocation (test.CodeFilePath, test.LineNumber, 0); else { - TypeSystemService.GetCompilationAsync (Project).ContinueWith ((t) => { + IdeApp.TypeSystemService.GetCompilationAsync (Project).ContinueWith ((t) => { var dotIndex = test.FullyQualifiedName.LastIndexOf (".", StringComparison.Ordinal); var className = test.FullyQualifiedName.Remove (dotIndex); var methodName = test.FullyQualifiedName.Substring (dotIndex + 1); diff --git a/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTestService.cs b/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTestService.cs index 9f89cee925..04c3715e09 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTestService.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTestService.cs @@ -1,4 +1,4 @@ -// +// // NUnitService.cs // // Author: @@ -423,9 +423,9 @@ namespace MonoDevelop.UnitTesting public static string GetTestResultsDirectory (string baseDirectory) { - var newCache = TypeSystemService.GetCacheDirectory (baseDirectory, false); + var newCache = IdeApp.TypeSystemService.GetCacheDirectory (baseDirectory, false); if (newCache == null) { - newCache = TypeSystemService.GetCacheDirectory (baseDirectory, true); + newCache = IdeApp.TypeSystemService.GetCacheDirectory (baseDirectory, true); var oldDirectory = Path.Combine (baseDirectory, "test-results"); var newDirectory = Path.Combine (newCache, "test-results"); try { |