diff options
author | David KarlasĖ <david.karlas@microsoft.com> | 2018-05-08 18:03:42 +0300 |
---|---|---|
committer | Marius Ungureanu <teromario@yahoo.com> | 2018-05-08 19:54:17 +0300 |
commit | 8fd9d2481654137496b692f6bfdab674cde86909 (patch) | |
tree | cb1b74f42c6b304543f3a2f760ba34c480c2629b /main/src/core/MonoDevelop.TextEditor.Tests | |
parent | 3e2cf1678389f6b5d7d2ba1053595f3522c639b3 (diff) |
Remove obsolete unit tests, since they were testing class that is now removed
Diffstat (limited to 'main/src/core/MonoDevelop.TextEditor.Tests')
-rw-r--r-- | main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/TextViewTests.cs | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/TextViewTests.cs b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/TextViewTests.cs index 8c953d9c54..fa9f01c972 100644 --- a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/TextViewTests.cs +++ b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/TextViewTests.cs @@ -70,70 +70,5 @@ namespace Mono.TextEditor.Tests return Task.FromResult (ScopeStack.Empty); } } - - [Test] - public void TestFirstTimeUpdate () - { - var editor = new MonoTextEditor (); - editor.GetTextEditorData ().Document.SyntaxMode = new TestSyntaxMode (); - editor.Text = @"1 -2 -3 -4 -5"; - editor.Caret.Location = new DocumentLocation (2, 1); - editor.InsertAtCaret ("a"); - Assert.IsTrue (editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan); - } - - [Test] - public void TestSubsequentUpdate () - { - var editor = new MonoTextEditor (); - editor.GetTextEditorData ().Document.SyntaxMode = new TestSyntaxMode (); - editor.Text = @"1 -2 -3 -4 -5"; - editor.Caret.Location = new DocumentLocation (2, 1); - editor.InsertAtCaret ("a"); - Assert.IsTrue (editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan); - editor.InsertAtCaret ("a"); - Assert.IsFalse (editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan); - } - - [Test] - public void TestBackspace () - { - var editor = new MonoTextEditor (); - editor.GetTextEditorData ().Document.SyntaxMode = new TestSyntaxMode (); - editor.Text = @"1 -2 -3 -4 -5"; - editor.Caret.Location = new DocumentLocation (2, 1); - editor.InsertAtCaret ("a"); - Assert.IsTrue (editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan); - DeleteActions.Backspace (editor.GetTextEditorData ()); - Assert.IsTrue (editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan); - } - - [Test] - public void TestDeleteNoUpdate () - { - var editor = new MonoTextEditor (); - editor.GetTextEditorData ().Document.SyntaxMode = new TestSyntaxMode (); - editor.Text = @"1 -2 -3 -4 -5"; - editor.Caret.Location = new DocumentLocation (2, 1); - DeleteActions.Delete (editor.GetTextEditorData ()); - Assert.IsFalse (editor.TextViewMargin.SpanUpdater.HasUpdatedMultilineSpan); - } - } }
\ No newline at end of file |