8 references to Name
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (8)
HandlerProviderTests.cs (3)
19
var methodHandler = handlerProvider.GetMethodHandler(TestMethodHandler.
Name
, TestMethodHandler.RequestType, TestMethodHandler.ResponseType, LanguageServerConstants.DefaultLanguageName);
63
Assert.Throws<InvalidOperationException>(() => handlerProvider.GetMethodHandler(TestMethodHandler.
Name
, TestMethodHandler.RequestType, responseTypeRef: TypeRef.Of<long>(), LanguageServerConstants.DefaultLanguageName));
74
r => Assert.Equal(TestMethodHandler.
Name
, r.MethodName),
Mocks\TestMethodHandlers.cs (2)
15
[LanguageServerEndpoint(
Name
, LanguageServerConstants.DefaultLanguageName)]
24
public static RequestHandlerMetadata Metadata = new(
Name
, RequestType, ResponseType, LanguageServerConstants.DefaultLanguageName);
RequestExecutionQueueTests.cs (3)
104
var response = (MockResponse?)await requestExecutionQueue.ExecuteAsync(JToken.FromObject(new MockRequest(1)), TestMethodHandler.
Name
, lspServices, CancellationToken.None);
145
var task1 = requestExecutionQueue.ExecuteAsync(request, TestMethodHandler.
Name
, lspServices, CancellationToken.None);
146
var task2 = requestExecutionQueue.ExecuteAsync(request, TestMethodHandler.
Name
, lspServices, CancellationToken.None);