1 override of TextView
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
DebuggerIntelliSense\TestState.vb (1)
66
Public Overrides ReadOnly Property
TextView
As ITextView
90 references to TextView
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (15)
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (2)
49
Assert.Equal(massaged,
TextView
.TextSnapshot.GetText());
50
Assert.Equal(caretPosition,
TextView
.Caret.Position.BufferPosition.Position);
EventHookup\EventHookupTestState.cs (1)
85
Assert.Equal(expectedCode,
TextView
.TextSnapshot.GetText());
RawStringLiteral\RawStringLiteralCommandHandlerTests.cs (4)
61
Assert.Equal(massaged,
TextView
.TextSnapshot.GetText());
64
Assert.Equal(caretPosition!.Value,
TextView
.Caret.Position.BufferPosition.Position);
70
Assert.True(
TextView
.Caret.InVirtualSpace);
71
Assert.Equal(virtualOffset,
TextView
.Caret.Position.VirtualBufferPosition.VirtualSpaces);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (8)
74
Assert.Equal(massaged,
TextView
.TextSnapshot.GetText());
75
Assert.Equal(caretPosition,
TextView
.Caret.Position.BufferPosition.Position);
81
Assert.True(
TextView
.Caret.InVirtualSpace);
82
Assert.Equal(virtualOffset,
TextView
.Caret.Position.VirtualBufferPosition.VirtualSpaces);
119
new PasteCommandArgs(this.
TextView
, this.SubjectBuffer), () => EditorOperations.Paste(), TestCommandExecutionContext.Create());
135
new PasteCommandArgs(this.
TextView
, this.SubjectBuffer), () =>
154
Assert.Equal(caretPosition, this.
TextView
.Caret.Position.BufferPosition.Position);
178
Assert.Equal(caretPosition, this.
TextView
.Caret.Position.BufferPosition.Position);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (30)
AbstractCommandHandlerTestState.cs (30)
228
=>
TextView
.Caret.Position;
260
=> commandHandler(new BackspaceKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
263
=> commandHandler(new DeleteKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
266
=> commandHandler(new WordDeleteToStartCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
269
=> commandHandler(new EscapeKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
272
=> commandHandler(new EscapeKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
275
=> commandHandler(new UpKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
278
=> commandHandler(new DownKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
281
=> commandHandler(new TabKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
284
=> commandHandler(new TabKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
287
=> commandHandler(new BackTabKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
290
=> commandHandler(new BackTabKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
293
=> commandHandler(new ReturnKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
296
=> commandHandler(new ReturnKeyCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
299
=> commandHandler(new PageUpKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
302
=> commandHandler(new PageDownKeyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
305
=> commandHandler(new CopyCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
308
=> commandHandler(new CutCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
311
=> commandHandler(new PasteCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
314
=> commandHandler(new InvokeCompletionListCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
317
=> commandHandler(new CommitUniqueCompletionListItemCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
320
=> commandHandler(new InsertSnippetCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
323
=> commandHandler(new InsertSnippetCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
326
=> commandHandler(new SurroundWithCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
329
=> commandHandler(new SurroundWithCommandArgs(
TextView
, SubjectBuffer), TestCommandExecutionContext.Create());
332
=> commandHandler(new InvokeSignatureHelpCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
335
=> commandHandler(new TypeCharCommandArgs(
TextView
, SubjectBuffer, typeChar), nextHandler, TestCommandExecutionContext.Create());
347
=> commandHandler(new SaveCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
350
=> commandHandler(new SelectAllCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
353
=> commandHandler(new ToggleCompletionModeCommandArgs(
TextView
, SubjectBuffer), nextHandler, TestCommandExecutionContext.Create());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (24)
Intellisense\TestState.vb (24)
65
MyBase.
TextView
.Options.GlobalOptions.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, False)
66
MyBase.
TextView
.Options.GlobalOptions.SetOptionValue(DefaultOptions.IndentStyleId, IndentingStyle.Smart)
281
session = asyncCompletionBroker.GetSession(
TextView
)
286
addHandlers(asyncCompletionBroker, New Data.CompletionTriggeredEventArgs(session,
TextView
))
304
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
321
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
349
Dim view = If(projectionsView,
TextView
)
356
Dim view = If(projectionsView,
TextView
)
385
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
395
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
417
Dim view = If(projectionsView,
TextView
)
476
Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.
TextView
), MockCompletionPresenter)
489
Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.
TextView
), MockCompletionPresenter)
498
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
505
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
512
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
519
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
538
Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.
TextView
), MockCompletionPresenter)
545
Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.
TextView
), MockCompletionPresenter)
550
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
557
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
565
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
572
Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(
TextView
)
580
Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(
TextView
), MockCompletionPresenter)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (11)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (10)
3515
Assert.True(state.
TextView
.Caret.InVirtualSpace)
3516
Assert.Equal(12, state.
TextView
.Caret.Position.VirtualSpaces)
3525
Dim bufferPosition = state.
TextView
.Caret.Position.BufferPosition
3527
Assert.False(state.
TextView
.Caret.InVirtualSpace)
3831
state.
TextView
.Caret.MoveTo(New VisualStudio.Text.SnapshotPoint(state.SubjectBuffer.CurrentSnapshot, 220))
7108
state.
TextView
.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True)
10354
state.
TextView
.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True)
10409
state.
TextView
.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True)
10463
state.
TextView
.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True)
10500
state.
TextView
.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, False)
IntelliSense\CSharpCompletionCommandHandlerTests_Conversions.vb (1)
168
Assert.Equal(cursorPosition, state.
TextView
.Caret.Position.BufferPosition.Position)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Interactive\Commands\InteractiveWindowCommandHandlerTestState.cs (3)
74
var copyToInteractiveArgs = new CopyToInteractiveCommandArgs(
TextView
, SubjectBuffer);
80
var executeInInteractiveArgs = new ExecuteInInteractiveCommandArgs(
TextView
, SubjectBuffer);
86
var executeInInteractiveArgs = new ExecuteInInteractiveCommandArgs(
TextView
, SubjectBuffer);
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
DebuggerIntelliSense\TestState.vb (2)
48
DirectCast(MyBase.
TextView
, IWpfTextView),
56
DirectCast(MyBase.
TextView
, IWpfTextView),
Snippets\CSharpSnippetCommandHandlerTests.vb (2)
237
Dim state = handler.GetCommandState(New InsertSnippetCommandArgs(testState.
TextView
, testState.SubjectBuffer))
256
Dim state = handler.GetCommandState(New SurroundWithCommandArgs(testState.
TextView
, testState.SubjectBuffer))
Snippets\SnippetTestState.vb (2)
77
TextView
,
80
TextView
.Properties.AddProperty(GetType(AbstractSnippetExpansionClient), SnippetExpansionClient)
Snippets\VisualBasicSnippetCommandHandlerTests.vb (1)
393
Dim state = handler.GetCommandState(New InsertSnippetCommandArgs(testState.
TextView
, testState.SubjectBuffer))