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