public void Insert_NewLine_AtEndOfLine()
 {
     Create("  hello", "world");
     _globalSettings.UseEditorIndent = false;
     _localSettings.AutoIndent       = true;
     _textView.MoveCaretTo(_textView.GetLine(0).End);
     _vimBuffer.Process(VimKey.Enter);
     Assert.AreEqual("  hello", _textView.GetLine(0).GetText());
     Assert.AreEqual("", _textView.GetLine(1).GetText());
     Assert.AreEqual(2, _textView.GetCaretVirtualPoint().VirtualSpaces);
 }
 public void ChangeLineSelection_VirtualSpaceHandling()
 {
     Create("  cat", "dog");
     EnterMode(ModeKind.VisualCharacter, _textView.GetLineSpan(0, 2, 2));
     _buffer.Process('C');
     _buffer.Process(VimKey.Escape);
     Assert.AreEqual("", _textView.GetLine(0).GetText());
     Assert.AreEqual("dog", _textView.GetLine(1).GetText());
     Assert.AreEqual(0, _textView.GetCaretPoint().Position);
     Assert.IsFalse(_textView.GetCaretVirtualPoint().IsInVirtualSpace);
 }