24 instantiations of TestRequest
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (24)
Ordering\RequestOrderingTests.cs (24)
38
new
TestRequest
(MutatingRequestHandler.MethodName),
39
new
TestRequest
(MutatingRequestHandler.MethodName),
40
new
TestRequest
(MutatingRequestHandler.MethodName),
55
new
TestRequest
(NonMutatingRequestHandler.MethodName),
56
new
TestRequest
(NonMutatingRequestHandler.MethodName),
57
new
TestRequest
(NonMutatingRequestHandler.MethodName),
72
new
TestRequest
(MutatingRequestHandler.MethodName),
73
new
TestRequest
(NonMutatingRequestHandler.MethodName),
74
new
TestRequest
(NonMutatingRequestHandler.MethodName),
92
new
TestRequest
(NonMutatingRequestHandler.MethodName),
93
new
TestRequest
(NonMutatingRequestHandler.MethodName),
94
new
TestRequest
(MutatingRequestHandler.MethodName),
111
new
TestRequest
(FailingRequestHandler.MethodName),
112
new
TestRequest
(NonMutatingRequestHandler.MethodName),
113
new
TestRequest
(MutatingRequestHandler.MethodName),
114
new
TestRequest
(NonMutatingRequestHandler.MethodName),
135
new
TestRequest
(LongRunningNonMutatingRequestHandler.MethodName),
136
new
TestRequest
(MutatingRequestHandler.MethodName),
137
new
TestRequest
(NonMutatingRequestHandler.MethodName),
166
new
TestRequest
(FailingMutatingRequestHandler.MethodName),
167
new
TestRequest
(NonMutatingRequestHandler.MethodName),
168
new
TestRequest
(MutatingRequestHandler.MethodName),
169
new
TestRequest
(NonMutatingRequestHandler.MethodName),
270
var request = new
TestRequest
(methodName);
18 references to TestRequest
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (18)
Ordering\FailingMutatingRequestHandler.cs (2)
16
internal class FailingMutatingRequestHandler : ILspServiceRequestHandler<
TestRequest
, TestResponse>
30
public async Task<TestResponse> HandleRequestAsync(
TestRequest
request, RequestContext context, CancellationToken cancellationToken)
Ordering\FailingRequestHandler.cs (2)
16
internal class FailingRequestHandler : ILspServiceRequestHandler<
TestRequest
, TestResponse>
30
public async Task<TestResponse> HandleRequestAsync(
TestRequest
request, RequestContext context, CancellationToken cancellationToken)
Ordering\LongRunningNonMutatingRequestHandler.cs (2)
17
internal class LongRunningNonMutatingRequestHandler : ILspServiceRequestHandler<
TestRequest
, TestResponse>
31
public Task<TestResponse> HandleRequestAsync(
TestRequest
request, RequestContext context, CancellationToken cancellationToken)
Ordering\MutatingRequestHandler.cs (2)
16
internal class MutatingRequestHandler : ILspServiceRequestHandler<
TestRequest
, TestResponse>
30
public async Task<TestResponse> HandleRequestAsync(
TestRequest
request, RequestContext context, CancellationToken cancellationToken)
Ordering\NonLSPSolutionRequestHandlerProvider.cs (2)
17
internal class NonLSPSolutionRequestHandler : ILspServiceRequestHandler<
TestRequest
, TestResponse>
30
public Task<TestResponse> HandleRequestAsync(
TestRequest
request, RequestContext context, CancellationToken cancellationToken)
Ordering\NonMutatingRequestHandler.cs (2)
16
internal class NonMutatingRequestHandler : ILspServiceRequestHandler<
TestRequest
, TestResponse>
30
public async Task<TestResponse> HandleRequestAsync(
TestRequest
request, RequestContext context, CancellationToken cancellationToken)
Ordering\RequestOrderingTests.cs (6)
270
var
request = new TestRequest(methodName);
271
var response = await testLspServer.ExecuteRequestAsync<
TestRequest
, TestResponse>(request.MethodName, request, CancellationToken.None);
283
private static async Task<TestResponse[]> TestAsync(TestLspServer testLspServer,
TestRequest
[] requests)
297
private static List<Task<TestResponse?>> StartTestRun(TestLspServer testLspServer,
TestRequest
[] requests, CancellationToken cancellationToken = default)
300
foreach (
var
request in requests)
301
waitables.Add(testLspServer.ExecuteRequestAsync<
TestRequest
, TestResponse>(request.MethodName, request, cancellationToken));