diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2016-05-11 14:49:55 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2016-05-17 17:13:15 +0300 |
commit | 43c93e34f6257886d21fc5c6b4e6051f6c7b753d (patch) | |
tree | c8a2945354ae49d25b549348dd818446af6107d5 /main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/SmartIndentModeTests.cs | |
parent | 0c332e8a275ce2aa9fd14213c5efc87fcf6ec2f2 (diff) |
[SourceEditor] Unified selection surrounding providers.
+ Fixed unit tests.
Diffstat (limited to 'main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/SmartIndentModeTests.cs')
-rw-r--r-- | main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/SmartIndentModeTests.cs | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/SmartIndentModeTests.cs b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/SmartIndentModeTests.cs index f7bcfc1833..c1b5ed84e1 100644 --- a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/SmartIndentModeTests.cs +++ b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/SmartIndentModeTests.cs @@ -28,15 +28,16 @@ using System.Collections.Generic; using NUnit.Framework; using System.Linq; using MonoDevelop.Ide.Editor; +using MonoDevelop.Ide.Editor.Extension; namespace Mono.TextEditor.Tests { [TestFixture()] public class SmartIndentModeTests { - internal readonly static IIndentationTracker IndentTracker = new TestIndentTracker (); + internal readonly static IndentationTracker IndentTracker = new TestIndentTracker (); - internal class TestIndentTracker : IIndentationTracker + internal class TestIndentTracker : IndentationTracker { string indentString; @@ -44,35 +45,11 @@ namespace Mono.TextEditor.Tests { this.indentString = indentString; } - - #region IIndentationTracker implementation - - public IndentatitonTrackerFeatures SupportedFeatures { - get { - return IndentatitonTrackerFeatures.All; - } - } - - public string GetIndentationString (int offset) - { - return indentString; - } - public string GetIndentationString (int lineNumber, int column) + public override string GetIndentationString (int lineNumber) { return indentString; } - - public int GetVirtualIndentationColumn (int offset) - { - return indentString.Length + 1; - } - - public int GetVirtualIndentationColumn (int lineNumber, int column) - { - return indentString.Length + 1; - } - #endregion } TextEditorData CreateData (string content) |