1 write to Input
Microsoft.VisualStudioCode.Razor.IntegrationTests (1)
Services\IntegrationTestServices.cs (1)
22Input = new InputService(this);
52 references to Input
Microsoft.VisualStudioCode.Razor.IntegrationTests (52)
CodeActionsTests.cs (2)
23await TestServices.Input.TypeAsync("StringBuilder sb;"); 37await TestServices.Input.PressAsync(SpecialKey.Enter);
CompletionTests.cs (9)
24await TestServices.Input.PressAsync(SpecialKey.End); // Go to end of line 25await TestServices.Input.PressAsync(SpecialKey.Enter); // New line 28await TestServices.Input.TypeAsync("current"); 55await TestServices.Input.PressAsync(SpecialKey.End); 56await TestServices.Input.PressAsync(SpecialKey.Enter); 59await TestServices.Input.TypeAsync("<di"); 86await TestServices.Input.PressAsync(SpecialKey.End); 87await TestServices.Input.PressAsync(SpecialKey.Enter); 90await TestServices.Input.TypeAsync("@in"); // Partial "@inject"
DiagnosticsTests.cs (4)
24await TestServices.Input.TypeAsync("@{ int x = 5 }"); // Missing semicolon 39await TestServices.Input.TypeAsync("@{ int x = }"); // Missing value - CS1525 45await TestServices.Input.PressAsync(SpecialKey.Backspace); 46await TestServices.Input.TypeAsync("5; }");
FormattingTests.cs (9)
23await TestServices.Input.PressAsync(SpecialKey.End); 24await TestServices.Input.PressAsync(SpecialKey.Enter); 25await TestServices.Input.TypeAsync("private string BadlyIndented=\"test\";"); 47await TestServices.Input.PressAsync(SpecialKey.End); 48await TestServices.Input.PressAsync(SpecialKey.Enter); 50await TestServices.Input.TypeAsync("<div>"); 52await TestServices.Input.TypeAsync("@"); 55await TestServices.Input.PressAsync(SpecialKey.Escape); 56await TestServices.Input.TypeAsync("{var x=1;}");
GoToDefinitionTests.cs (2)
68await TestServices.Input.PressWithPrimaryModifierAsync(SpecialKey.End); 69await TestServices.Input.TypeAsync("\n<Counter />");
Services\CodeActionService.cs (1)
20await TestServices.Input.PressWithPrimaryModifierAsync('.');
Services\CompletionServices.cs (1)
21await TestServices.Input.PressWithPrimaryModifierAsync(SpecialKey.Space);
Services\EditorService.cs (18)
232await TestServices.Input.PressWithControlAsync('g'); 235await TestServices.Input.TypeAsync($"{line}:{column}"); 236await TestServices.Input.PressAsync(SpecialKey.Enter); 253await TestServices.Input.PressWithPrimaryModifierAsync('a'); 264await TestServices.Input.PressWithPrimaryModifierAsync('s'); 299await TestServices.Input.PressWithShiftPrimaryModifierAsync('p'); 309await TestServices.Input.TypeAsync(command); 320await TestServices.Input.PressAsync(SpecialKey.Enter); 333await TestServices.Input.PressWithPrimaryModifierAsync('f'); 343await TestServices.Input.TypeAsync(word); 349await TestServices.Input.PressAsync(SpecialKey.Escape); 351await TestServices.Input.PressAsync(SpecialKey.Escape); 366await TestServices.Input.PressAsync(SpecialKey.Escape); 378await TestServices.Input.PressWithShiftAsync(SpecialKey.ArrowLeft); 384await TestServices.Input.PressAsync(SpecialKey.ArrowLeft); 396await TestServices.Input.PressWithPrimaryModifierAsync('p'); 406await TestServices.Input.TypeAsync(relativePath); 417await TestServices.Input.PressAsync(SpecialKey.Enter);
Services\NavigationServices.cs (2)
22await TestServices.Input.PressAsync(SpecialKey.F12); 61await TestServices.Input.PressWithShiftAsync(SpecialKey.F12);
Services\RazorService.cs (4)
54await TestServices.Input.PressAsync(SpecialKey.Escape); 57await TestServices.Input.PressWithPrimaryModifierAsync('w'); 85await TestServices.Input.PressAsync(SpecialKey.Escape); 86await TestServices.Input.PressWithPrimaryModifierAsync('w');