48 references to TextView
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (15)
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (2)
48
Assert.Equal(massaged,
TextView
.TextSnapshot.GetText());
49
Assert.Equal(caretPosition,
TextView
.Caret.Position.BufferPosition.Position);
EventHookup\EventHookupTestState.cs (1)
89
Assert.Equal(expectedCode,
TextView
.TextSnapshot.GetText());
RawStringLiteral\RawStringLiteralCommandHandlerTests.cs (4)
62
Assert.Equal(massaged,
TextView
.TextSnapshot.GetText());
65
Assert.Equal(caretPosition!.Value,
TextView
.Caret.Position.BufferPosition.Position);
71
Assert.True(
TextView
.Caret.InVirtualSpace);
72
Assert.Equal(virtualOffset,
TextView
.Caret.Position.VirtualBufferPosition.VirtualSpaces);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (8)
72
Assert.Equal(massaged,
TextView
.TextSnapshot.GetText());
73
Assert.Equal(caretPosition,
TextView
.Caret.Position.BufferPosition.Position);
79
Assert.True(
TextView
.Caret.InVirtualSpace);
80
Assert.Equal(virtualOffset,
TextView
.Caret.Position.VirtualBufferPosition.VirtualSpaces);
117
new PasteCommandArgs(this.
TextView
, this.SubjectBuffer), () => EditorOperations.Paste(), TestCommandExecutionContext.Create());
133
new PasteCommandArgs(this.
TextView
, this.SubjectBuffer), () =>
152
Assert.Equal(caretPosition, this.
TextView
.Caret.Position.BufferPosition.Position);
176
Assert.Equal(caretPosition, this.
TextView
.Caret.Position.BufferPosition.Position);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (30)
AbstractCommandHandlerTestState.cs (30)
225
=>
TextView
.Caret.Position;
257
=> commandHandler(new BackspaceKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
260
=> commandHandler(new DeleteKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
263
=> commandHandler(new WordDeleteToStartCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
266
=> commandHandler(new EscapeKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
269
=> commandHandler(new EscapeKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
272
=> commandHandler(new UpKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
275
=> commandHandler(new DownKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
278
=> commandHandler(new TabKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
281
=> commandHandler(new TabKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
284
=> commandHandler(new BackTabKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
287
=> commandHandler(new BackTabKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
290
=> commandHandler(new ReturnKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
293
=> commandHandler(new ReturnKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
296
=> commandHandler(new PageUpKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
299
=> commandHandler(new PageDownKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
302
=> commandHandler(new CopyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
305
=> commandHandler(new CutCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
308
=> commandHandler(new PasteCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
311
=> commandHandler(new InvokeCompletionListCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
314
=> commandHandler(new CommitUniqueCompletionListItemCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
317
=> commandHandler(new InsertSnippetCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
320
=> commandHandler(new InsertSnippetCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
323
=> commandHandler(new SurroundWithCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
326
=> commandHandler(new SurroundWithCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
329
=> commandHandler(new InvokeSignatureHelpCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
332
=> commandHandler(new TypeCharCommandArgs(
TextView
, SubjectBuffer, typeChar), nextHandler, TestCommandExecutionContext.Create());
344
=> commandHandler(new SaveCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
347
=> commandHandler(new SelectAllCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
350
=> commandHandler(new ToggleCompletionModeCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Interactive\Commands\InteractiveWindowCommandHandlerTestState.cs (3)
72
var copyToInteractiveArgs = new CopyToInteractiveCommandArgs(
TextView
, SubjectBuffer);
78
var executeInInteractiveArgs = new ExecuteInInteractiveCommandArgs(
TextView
, SubjectBuffer);
84
var executeInInteractiveArgs = new ExecuteInInteractiveCommandArgs(
TextView
, SubjectBuffer);