diff options
author | iain holmes <iain@xamarin.com> | 2015-05-27 21:49:24 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2015-06-05 18:09:15 +0300 |
commit | 30726fe93aa0011b4b93a2c9c9813a834521f1d1 (patch) | |
tree | eb46cc25e38fb4ed5ec23ea38881d6c1c1d6f216 /main/src/core/MonoDevelop.TextEditor.Tests | |
parent | 428baf3d38f6255770eb18592c6522deccea7fac (diff) |
[Text Editor] Add Delete to start of line action
Add an action to delete from the caret to the start of the line
Diffstat (limited to 'main/src/core/MonoDevelop.TextEditor.Tests')
-rw-r--r-- | main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests.DefaultEditActions/DeleteActionTests.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests.DefaultEditActions/DeleteActionTests.cs b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests.DefaultEditActions/DeleteActionTests.cs index 74543f0706..2bb79404b2 100644 --- a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests.DefaultEditActions/DeleteActionTests.cs +++ b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests.DefaultEditActions/DeleteActionTests.cs @@ -114,6 +114,31 @@ namespace Mono.TextEditor.Tests.Actions 1234567890", data.Document.Text); } + [Test] + public void TestDeleteCaretLineToStart () + { + var data = Create (@"1234567890 +1234$67890 +1234567890"); + DeleteActions.CaretLineToStart (data); + Assert.AreEqual (@"1234567890 +67890 +1234567890", data.Document.Text); + } + + [Test] + public void TestDeleteCaretLineToStartWithFoldings () + { + var data = Create (@"1234567890 +1234+[567890 +1234567890 +123]4$67890 +1234567890"); + DeleteActions.CaretLineToStart (data); + Assert.AreEqual (@"1234567890 +67890 +1234567890", data.Document.Text); + } [Test] public void TestDeleteCaretLineToEnd () |