зеркало из https://github.com/dotnet/razor.git
Harden completion test (#10902)
This commit is contained in:
Родитель
020f8e7542
Коммит
c2bff15ca1
|
@ -437,6 +437,12 @@ public class CompletionIntegrationTests(ITestOutputHelper testOutputHelper) : Ab
|
|||
Assert.NotNull(session);
|
||||
if (commitChar.HasValue)
|
||||
{
|
||||
// Commit using the specified commit character
|
||||
session.Commit(commitChar.Value, HangMitigatingCancellationToken);
|
||||
|
||||
// session.Commit call above commits as if the commit character was typed,
|
||||
// but doesn't actually insert the character into the buffer.
|
||||
// So we still need to insert the character into the buffer ourselves.
|
||||
TestServices.Input.Send(commitChar.Value.ToString());
|
||||
}
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче