1 instantiation of TestParameterlessMethodHandler
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Mocks\TestMethodHandlers.cs (1)
34
public static readonly IMethodHandler Instance = new
TestParameterlessMethodHandler
();
8 references to TestParameterlessMethodHandler
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (8)
HandlerProviderTests.cs (5)
28
var methodHandler = handlerProvider.GetMethodHandler(
TestParameterlessMethodHandler
.Name, requestTypeRef: null,
TestParameterlessMethodHandler
.ResponseTypeRef, LanguageServerConstants.DefaultLanguageName);
29
Assert.Same(
TestParameterlessMethodHandler
.Instance, methodHandler);
76
r => Assert.Equal(
TestParameterlessMethodHandler
.Name, r.MethodName),
104
(typeof(IMethodHandler),
TestParameterlessMethodHandler
.Instance),
RequestExecutionQueueTests.cs (3)
111
var requestExecutionQueue = GetRequestExecutionQueue(false, (
TestParameterlessMethodHandler
.Metadata,
TestParameterlessMethodHandler
.Instance));
114
var response = (MockResponse?)await requestExecutionQueue.ExecuteAsync(serializedRequest: null,
TestParameterlessMethodHandler
.Name, lspServices, CancellationToken.None);