public void SortSimpleTest() { var editor = CodeCommentTests.CreateTextEditor(@" 9 <-8 7 6 5 4 3 2-> 1 "); EditActions.SortSelectedLines(editor); Assert.AreEqual(@" 9 2 3 4 5 6 7 8 1 ", editor.Text); }
public void SortSimpleTest() { var editor = TextEditorFactory.CreateNewEditor(); editor.FileName = "a.cs"; editor.MimeType = "text/x-csharp"; CodeCommentTests.SetupInput(editor, @" 9 <-8 7 6 5 4 3 2-> 1 "); EditActions.SortSelectedLines(editor); Assert.AreEqual(@" 9 2 3 4 5 6 7 8 1 ", editor.Text); }