1 override of TextView
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
DebuggerIntelliSense\TestState.vb (1)
66Public Overrides ReadOnly Property TextView As ITextView
90 references to TextView
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (15)
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (2)
49Assert.Equal(massaged, TextView.TextSnapshot.GetText()); 50Assert.Equal(caretPosition, TextView.Caret.Position.BufferPosition.Position);
EventHookup\EventHookupTestState.cs (1)
85Assert.Equal(expectedCode, TextView.TextSnapshot.GetText());
RawStringLiteral\RawStringLiteralCommandHandlerTests.cs (4)
61Assert.Equal(massaged, TextView.TextSnapshot.GetText()); 64Assert.Equal(caretPosition!.Value, TextView.Caret.Position.BufferPosition.Position); 70Assert.True(TextView.Caret.InVirtualSpace); 71Assert.Equal(virtualOffset, TextView.Caret.Position.VirtualBufferPosition.VirtualSpaces);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (8)
74Assert.Equal(massaged, TextView.TextSnapshot.GetText()); 75Assert.Equal(caretPosition, TextView.Caret.Position.BufferPosition.Position); 81Assert.True(TextView.Caret.InVirtualSpace); 82Assert.Equal(virtualOffset, TextView.Caret.Position.VirtualBufferPosition.VirtualSpaces); 119new PasteCommandArgs(this.TextView, this.SubjectBuffer), () => EditorOperations.Paste(), TestCommandExecutionContext.Create()); 135new PasteCommandArgs(this.TextView, this.SubjectBuffer), () => 154Assert.Equal(caretPosition, this.TextView.Caret.Position.BufferPosition.Position); 178Assert.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)
65MyBase.TextView.Options.GlobalOptions.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, False) 66MyBase.TextView.Options.GlobalOptions.SetOptionValue(DefaultOptions.IndentStyleId, IndentingStyle.Smart) 281session = asyncCompletionBroker.GetSession(TextView) 286addHandlers(asyncCompletionBroker, New Data.CompletionTriggeredEventArgs(session, TextView)) 304Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 321Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 349Dim view = If(projectionsView, TextView) 356Dim view = If(projectionsView, TextView) 385Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 395Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 417Dim view = If(projectionsView, TextView) 476Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.TextView), MockCompletionPresenter) 489Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.TextView), MockCompletionPresenter) 498Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 505Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 512Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 519Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 538Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.TextView), MockCompletionPresenter) 545Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(Me.TextView), MockCompletionPresenter) 550Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 557Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 565Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 572Dim session = GetExportedValue(Of IAsyncCompletionBroker)().GetSession(TextView) 580Dim presenter = DirectCast(CompletionPresenterProvider.GetOrCreate(TextView), MockCompletionPresenter)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (11)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (10)
3515Assert.True(state.TextView.Caret.InVirtualSpace) 3516Assert.Equal(12, state.TextView.Caret.Position.VirtualSpaces) 3525Dim bufferPosition = state.TextView.Caret.Position.BufferPosition 3527Assert.False(state.TextView.Caret.InVirtualSpace) 3831state.TextView.Caret.MoveTo(New VisualStudio.Text.SnapshotPoint(state.SubjectBuffer.CurrentSnapshot, 220)) 7108state.TextView.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True) 10354state.TextView.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True) 10409state.TextView.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True) 10463state.TextView.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, True) 10500state.TextView.Options.SetOptionValue(DefaultOptions.ResponsiveCompletionOptionId, False)
IntelliSense\CSharpCompletionCommandHandlerTests_Conversions.vb (1)
168Assert.Equal(cursorPosition, state.TextView.Caret.Position.BufferPosition.Position)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Interactive\Commands\InteractiveWindowCommandHandlerTestState.cs (3)
74var copyToInteractiveArgs = new CopyToInteractiveCommandArgs(TextView, SubjectBuffer); 80var executeInInteractiveArgs = new ExecuteInInteractiveCommandArgs(TextView, SubjectBuffer); 86var executeInInteractiveArgs = new ExecuteInInteractiveCommandArgs(TextView, SubjectBuffer);
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
DebuggerIntelliSense\TestState.vb (2)
48DirectCast(MyBase.TextView, IWpfTextView), 56DirectCast(MyBase.TextView, IWpfTextView),
Snippets\CSharpSnippetCommandHandlerTests.vb (2)
237Dim state = handler.GetCommandState(New InsertSnippetCommandArgs(testState.TextView, testState.SubjectBuffer)) 256Dim state = handler.GetCommandState(New SurroundWithCommandArgs(testState.TextView, testState.SubjectBuffer))
Snippets\SnippetTestState.vb (2)
77TextView, 80TextView.Properties.AddProperty(GetType(AbstractSnippetExpansionClient), SnippetExpansionClient)
Snippets\VisualBasicSnippetCommandHandlerTests.vb (1)
393Dim state = handler.GetCommandState(New InsertSnippetCommandArgs(testState.TextView, testState.SubjectBuffer))