public void PutOver_CharacterWise_WithSingleCharacterWise()
 {
     Create("dog");
     EnterMode(ModeKind.VisualCharacter, _textView.GetLineSpan(0, 1, 1));
     UnnamedRegister.UpdateValue("cat", OperationKind.CharacterWise);
     _buffer.Process("p");
     Assert.AreEqual("dcatg", _textView.GetLine(0).GetText());
     Assert.AreEqual(3, _textView.GetCaretPoint().Position);
     Assert.AreEqual("o", UnnamedRegister.StringValue);
 }
Exemplo n.º 2
0
 public void Change_Word()
 {
     Create("cat chases the ball");
     EnterMode(ModeKind.VisualCharacter, _textView.GetLineSpan(0, 0, 4));
     _buffer.LocalSettings.AutoIndent = true;
     _buffer.Process("c");
     Assert.AreEqual("chases the ball", _textView.GetLine(0).GetText());
     Assert.AreEqual(0, _textView.GetCaretPoint().Position);
     Assert.AreEqual(ModeKind.Insert, _buffer.ModeKind);
 }