162 references to TestCommandExecutionContext
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
CommentSelection\CSharpCommentSelectionTests.cs (1)
128commandHandler.ExecuteCommand(textView, textBuffer, Operation.Uncomment, TestCommandExecutionContext.Create());
EncapsulateField\EncapsulateFieldTestState.cs (1)
58commandHandler.ExecuteCommand(args, TestCommandExecutionContext.Create());
ExtractMethod\MiscTests.cs (1)
141handler.ExecuteCommand(new ExtractMethodCommandArgs(view, view.TextBuffer), TestCommandExecutionContext.Create());
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandlerTests.cs (1)
56}, TestCommandExecutionContext.Create());
Formatting\FormattingEngineTests.cs (1)
2618commandHandler.ExecuteCommand(new TypeCharCommandArgs(textView, subjectDocument.GetTextBuffer(), typedChar[0]), () => { }, TestCommandExecutionContext.Create());
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
3386commandHandler.ExecuteCommand(new TypeCharCommandArgs(subjectDocument.GetTextView(), textBuffer, typedChar[0]), () => { }, TestCommandExecutionContext.Create());
SplitStringLiteral\SplitStringLiteralCommandHandlerTests.cs (1)
96if (!commandHandler.ExecuteCommand(new ReturnKeyCommandArgs(view, textBuffer), TestCommandExecutionContext.Create()))
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (3)
107}, TestCommandExecutionContext.Create()); 119new PasteCommandArgs(this.TextView, this.SubjectBuffer), () => EditorOperations.Paste(), TestCommandExecutionContext.Create()); 138}, TestCommandExecutionContext.Create());
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
SplitComments\AbstractSplitCommentCommandHandlerTests.cs (1)
75if (!commandHandler.ExecuteCommand(new ReturnKeyCommandArgs(view, view.TextBuffer), TestCommandExecutionContext.Create()))
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (43)
AbstractCommandHandlerTestState.cs (29)
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());
AbstractTypingCommandHandlerTest.cs (1)
44if (!commandHandler.ExecuteCommand(args, TestCommandExecutionContext.Create()))
AutomaticCompletion\AbstractAutomaticLineEnderTests.cs (1)
90commandHandler.ExecuteCommand(new AutomaticLineEnderCommandArgs(view, buffer), nextHandler, TestCommandExecutionContext.Create());
CommentSelection\AbstractToggleCommentTestBase.cs (2)
49commandHandler.ExecuteCommand(textView, textBuffer, ValueTuple.Create(), TestCommandExecutionContext.Create()); 66commandHandler.ExecuteCommand(textView, originalSubjectBuffer, ValueTuple.Create(), TestCommandExecutionContext.Create());
CompleteStatement\AbstractCompleteStatementTests.cs (1)
65commandHandler.ExecuteCommand(commandArgs, nextHandler, TestCommandExecutionContext.Create());
DocumentationComments\AbstractDocumentationCommentTests.cs (5)
45commandHandler.ExecuteCommand(commandArgs, nextHandler, TestCommandExecutionContext.Create()); 59commandHandler.ExecuteCommand(commandArgs, nextHandler, TestCommandExecutionContext.Create()); 74commandHandler.ExecuteCommand(commandArgs, nextHandler, TestCommandExecutionContext.Create()); 93commandHandler.ExecuteCommand(commandArgs, nextHandler, TestCommandExecutionContext.Create()); 112commandHandler.ExecuteCommand(commandArgs, nextHandler, TestCommandExecutionContext.Create());
DocumentationComments\AbstractXmlTagCompletionTests.cs (1)
40commandHandler.ExecuteCommand(args, nextHandler, TestCommandExecutionContext.Create());
Formatting\CoreFormatterTestsBase.cs (3)
148commandHandler.ExecuteCommand(commandArgs, TestCommandExecutionContext.Create()); 256commandHandler.ExecuteCommand(commandArgs, () => { }, TestCommandExecutionContext.Create()); 263commandHandler.ExecuteCommand(commandArgs, () => { }, TestCommandExecutionContext.Create());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (2)
Intellisense\TestState.vb (2)
148compHandler.ExecuteCommand(New DeleteKeyCommandArgs(view, buffer), AddressOf MyBase.SendDelete, TestCommandExecutionContext.Create()) 598ExecuteTypeCharCommand(New TypeCharCommandArgs(view, buffer, localCh), Sub() EditorOperations.InsertText(localCh.ToString()), TestCommandExecutionContext.Create())
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
FindReferences\FindReferencesCommandHandlerTests.cs (1)
88textView.TextBuffer), TestCommandExecutionContext.Create());
RenameTracking\RenameTrackingTestState.cs (1)
140=> _commandHandler.ExecuteCommand(new EscapeKeyCommandArgs(_view, _view.TextBuffer), TestCommandExecutionContext.Create());
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (79)
FindReferences\FindReferencesCommandHandlerTests.vb (1)
49New FindReferencesCommandArgs(view, textBuffer), Utilities.TestCommandExecutionContext.Create())
GoToDefinition\GoToDefinitionCommandHandlerTests.vb (4)
66handler.ExecuteCommand(New GoToDefinitionCommandArgs(view, baseDocument.GetTextBuffer()), TestCommandExecutionContext.Create()) 74handler.ExecuteCommand(New GoToDefinitionCommandArgs(view, baseDocument.GetTextBuffer()), TestCommandExecutionContext.Create()) 108handler.ExecuteCommand(New GoToDefinitionCommandArgs(view, document.GetTextBuffer()), TestCommandExecutionContext.Create()) 158handler.ExecuteCommand(New GoToDefinitionCommandArgs(view, document.GetTextBuffer()), TestCommandExecutionContext.Create())
IntelliSense\SignatureHelpControllerTests.vb (5)
100Sub() GetMocks(controller).Buffer.Insert(0, " "), TestCommandExecutionContext.Create()) 178Sub() GetMocks(controller).Buffer.Insert(0, " "), TestCommandExecutionContext.Create()) 243Sub() GetMocks(controller).Buffer.Insert(0, ")"), TestCommandExecutionContext.Create()) 256Sub() GetMocks(controller).Buffer.Insert(0, "a"), TestCommandExecutionContext.Create()) 333New InvokeSignatureHelpCommandArgs(view.Object, buffer), Nothing, TestCommandExecutionContext.Create())
InteractivePaste\InteractivePasteCommandHandlerTests.vb (5)
57Assert.True(handler.ExecuteCommand(New PasteCommandArgs(textView, textView.TextBuffer), TestCommandExecutionContext.Create())) 91If Not handler.ExecuteCommand(New PasteCommandArgs(textView, textView.TextBuffer), TestCommandExecutionContext.Create()) Then 133Assert.True(handler.ExecuteCommand(New PasteCommandArgs(textView, textView.TextBuffer), TestCommandExecutionContext.Create())) 177Assert.True(handler.ExecuteCommand(New PasteCommandArgs(textView, textView.TextBuffer), TestCommandExecutionContext.Create())) 223Assert.True(handler.ExecuteCommand(New PasteCommandArgs(textView, textView.TextBuffer), TestCommandExecutionContext.Create()))
PasteTracking\PasteTrackingTestState.vb (1)
69Dim executionContext = TestCommandExecutionContext.Create()
Rename\RenameCommandHandlerTests.vb (53)
42CreateCommandHandler(workspace).ExecuteCommand(New RenameCommandArgs(view, view.TextBuffer), Sub() Throw New Exception("The operation should have been handled."), Utilities.TestCommandExecutionContext.Create()) 101CreateCommandHandler(workspace).ExecuteCommand(New RenameCommandArgs(view, view.TextBuffer), Sub() Throw New Exception("The operation should have been handled."), Utilities.TestCommandExecutionContext.Create()) 127CreateCommandHandler(workspace).ExecuteCommand(New RenameCommandArgs(view, view.TextBuffer), Sub() Throw New Exception("The operation should have been handled."), Utilities.TestCommandExecutionContext.Create()) 160commandHandler.ExecuteCommand(New TypeCharCommandArgs(view, view.TextBuffer, "p"c), Sub() editorOperations.InsertText("p"), Utilities.TestCommandExecutionContext.Create()) 214Utilities.TestCommandExecutionContext.Create()) 256Utilities.TestCommandExecutionContext.Create()) 298Utilities.TestCommandExecutionContext.Create())) 304Utilities.TestCommandExecutionContext.Create()) 337Utilities.TestCommandExecutionContext.Create()) 350Utilities.TestCommandExecutionContext.Create()) 393Utilities.TestCommandExecutionContext.Create()) 400Utilities.TestCommandExecutionContext.Create()) 410Utilities.TestCommandExecutionContext.Create()) 416Utilities.TestCommandExecutionContext.Create()) 426Utilities.TestCommandExecutionContext.Create()) 433Utilities.TestCommandExecutionContext.Create()) 443Utilities.TestCommandExecutionContext.Create()) 449Utilities.TestCommandExecutionContext.Create()) 479Utilities.TestCommandExecutionContext.Create()) 515Utilities.TestCommandExecutionContext.Create()) 525Utilities.TestCommandExecutionContext.Create()) 565Utilities.TestCommandExecutionContext.Create()) 602Utilities.TestCommandExecutionContext.Create()) 639Utilities.TestCommandExecutionContext.Create()) 649Utilities.TestCommandExecutionContext.Create()) 693Utilities.TestCommandExecutionContext.Create()) 703Utilities.TestCommandExecutionContext.Create()) 758Utilities.TestCommandExecutionContext.Create()) 768Utilities.TestCommandExecutionContext.Create()) 807commandHandler.ExecuteCommand(New RenameCommandArgs(view, view.TextBuffer), Sub() Exit Sub, Utilities.TestCommandExecutionContext.Create()) 808commandHandler.ExecuteCommand(New TypeCharCommandArgs(view, view.TextBuffer, "Z"c), Sub() editorOperations.InsertText("Z"), Utilities.TestCommandExecutionContext.Create()) 809commandHandler.ExecuteCommand(New ReturnKeyCommandArgs(view, view.TextBuffer), Sub() Exit Sub, Utilities.TestCommandExecutionContext.Create()) 847commandHandler.ExecuteCommand(New RenameCommandArgs(view, view.TextBuffer), Sub() Exit Sub, Utilities.TestCommandExecutionContext.Create()) 850Utilities.TestCommandExecutionContext.Create()) 881Utilities.TestCommandExecutionContext.Create()) 920Utilities.TestCommandExecutionContext.Create()) 956Utilities.TestCommandExecutionContext.Create()) 990Utilities.TestCommandExecutionContext.Create()) 1023Utilities.TestCommandExecutionContext.Create()) 1060Sub() editorOperations.InsertText("B"), Utilities.TestCommandExecutionContext.Create()) 1063commandHandler.ExecuteCommand(New SaveCommandArgs(view, view.TextBuffer), Sub() Exit Sub, Utilities.TestCommandExecutionContext.Create()) 1078commandHandler.ExecuteCommand(New MoveSelectedLinesUpCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1088commandHandler.ExecuteCommand(New MoveSelectedLinesDownCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1098commandHandler.ExecuteCommand(New ReorderParametersCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1108commandHandler.ExecuteCommand(New RemoveParametersCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1118commandHandler.ExecuteCommand(New ExtractInterfaceCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1128commandHandler.ExecuteCommand(New EncapsulateFieldCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1138commandHandler.ExecuteCommand(New CutCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1148commandHandler.ExecuteCommand(New PasteCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1158commandHandler.ExecuteCommand(New CutCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1168commandHandler.ExecuteCommand(New PasteCommandArgs(view, view.TextBuffer), nextHandler, Utilities.TestCommandExecutionContext.Create()) 1199Utilities.TestCommandExecutionContext.Create()) 1273Utilities.TestCommandExecutionContext.Create())
Rename\RenameTagProducerTests.vb (10)
597commandHandler.ExecuteCommand(New BackspaceKeyCommandArgs(view, view.TextBuffer), Sub() editorOperations.Backspace(), Utilities.TestCommandExecutionContext.Create()) 598commandHandler.ExecuteCommand(New BackspaceKeyCommandArgs(view, view.TextBuffer), Sub() editorOperations.Backspace(), Utilities.TestCommandExecutionContext.Create()) 599commandHandler.ExecuteCommand(New BackspaceKeyCommandArgs(view, view.TextBuffer), Sub() editorOperations.Backspace(), Utilities.TestCommandExecutionContext.Create()) 600commandHandler.ExecuteCommand(New TypeCharCommandArgs(view, view.TextBuffer, "a"c), Sub() editorOperations.InsertText("a"), Utilities.TestCommandExecutionContext.Create()) 601commandHandler.ExecuteCommand(New TypeCharCommandArgs(view, view.TextBuffer, "s"c), Sub() editorOperations.InsertText("s"), Utilities.TestCommandExecutionContext.Create()) 1094Utilities.TestCommandExecutionContext.Create()) 1118Utilities.TestCommandExecutionContext.Create()) 1174commandHandler.ExecuteCommand(New TypeCharCommandArgs(view, view.TextBuffer, "e"c), Sub() editorOperations.InsertText("e"), Utilities.TestCommandExecutionContext.Create()) 1175commandHandler.ExecuteCommand(New TypeCharCommandArgs(view, view.TextBuffer, "f"c), Sub() editorOperations.InsertText("f"), Utilities.TestCommandExecutionContext.Create()) 1176commandHandler.ExecuteCommand(New TypeCharCommandArgs(view, view.TextBuffer, "g"c), Sub() editorOperations.InsertText("g"), Utilities.TestCommandExecutionContext.Create())
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (21)
AutomaticCompletion\AutomaticLineEnderTests.vb (1)
289New AutomaticLineEnderCommandArgs(view, buffer), Sub() Exit Sub, TestCommandExecutionContext.Create())
CommentSelection\VisualBasicCommentSelectionTests.vb (1)
93commandHandler.ExecuteCommand(textView, textBuffer, operation, TestCommandExecutionContext.Create())
EncapsulateField\EncapsulateFieldTestState.vb (1)
42commandHandler.ExecuteCommand(args, TestCommandExecutionContext.Create())
EndConstructGeneration\EndConstructTestingHelpers.vb (1)
231endConstructor.ExecuteCommand_ReturnKeyCommandHandler(New ReturnKeyCommandArgs(view, view.TextBuffer), Sub() operations.InsertNewLine(), TestCommandExecutionContext.Create())
ImplementAbstractClass\ImplementAbstractClassCommandHandlerTests.vb (1)
213commandHandler.ExecuteCommand(New ReturnKeyCommandArgs(view, view.TextBuffer), nextHandler, TestCommandExecutionContext.Create())
ImplementInterface\ImplementInterfaceCommandHandlerTests.vb (2)
28commandHandler.ExecuteCommand(New ReturnKeyCommandArgs(view, view.TextBuffer), Sub() nextHandler(view, workspace), TestCommandExecutionContext.Create()) 74commandHandler.ExecuteCommand(New ReturnKeyCommandArgs(view, view.TextBuffer), Sub() nextHandlerCalled = True, TestCommandExecutionContext.Create())
LineCommit\CommitOnEnterTests.vb (2)
253testData.CommandHandler.ExecuteCommand(New ReturnKeyCommandArgs(testData.View, testData.Buffer), Sub() testData.EditorOperations.InsertNewLine(), TestCommandExecutionContext.Create()) 346testData.CommandHandler.ExecuteCommand(New ReturnKeyCommandArgs(testData.View, testData.Buffer), Sub() testData.EditorOperations.InsertNewLine(), TestCommandExecutionContext.Create())
LineCommit\CommitOnMiscellaneousCommandsTests.vb (10)
26TestCommandExecutionContext.Create()) 53TestCommandExecutionContext.Create()) 56TestCommandExecutionContext.Create()) 79TestCommandExecutionContext.Create()) 97TestCommandExecutionContext.Create()) 113testData.CommandHandler.ExecuteCommand(New SaveCommandArgs(testData.View, testData.Buffer), Sub() Exit Sub, TestCommandExecutionContext.Create()) 137testData.CommandHandler.ExecuteCommand(New SaveCommandArgs(testData.View, testData.Buffer), Sub() Exit Sub, TestCommandExecutionContext.Create()) 160testData.CommandHandler.ExecuteCommand(New FormatDocumentCommandArgs(testData.View, testData.Buffer), Sub() Exit Sub, TestCommandExecutionContext.Create()) 185testData.CommandHandler.ExecuteCommand(New FormatDocumentCommandArgs(testData.View, testData.Buffer), Sub() Exit Sub, TestCommandExecutionContext.Create()) 209TestCommandExecutionContext.Create())
LineCommit\CommitWithViewTests.vb (2)
284TestCommandExecutionContext.Create()) 794testData.CommandHandler.ExecuteCommand(selArgs, Sub() Return, TestCommandExecutionContext.Create())
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Interactive\Commands\InteractiveWindowCommandHandlerTestState.cs (2)
75CopyToInteractiveCommandHandler.ExecuteCommand(copyToInteractiveArgs, TestCommandExecutionContext.Create()); 81ExecuteInInteractiveCommandHandler.ExecuteCommand(executeInInteractiveArgs, TestCommandExecutionContext.Create());
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
CallHierarchy\CallHierarchyTestState.vb (1)
119_commandHandler.ExecuteCommand(args, TestCommandExecutionContext.Create())
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ClassView\SyncClassViewTests.vb (1)
881args:=New SyncClassViewCommandArgs(textView, subjectBuffer), TestCommandExecutionContext.Create())