1 instantiation of TestNotificationHandler
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Mocks\TestMethodHandlers.cs (1)
49
public static readonly IMethodHandler Instance = new
TestNotificationHandler
();
8 references to TestNotificationHandler
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (8)
HandlerProviderTests.cs (5)
37
var methodHandler = handlerProvider.GetMethodHandler(
TestNotificationHandler
.Name,
TestNotificationHandler
.RequestTypeRef, responseTypeRef: null, LanguageServerConstants.DefaultLanguageName);
38
Assert.Same(
TestNotificationHandler
.Instance, methodHandler);
75
r => Assert.Equal(
TestNotificationHandler
.Name, r.MethodName),
103
(typeof(IMethodHandler),
TestNotificationHandler
.Instance),
RequestExecutionQueueTests.cs (3)
121
var requestExecutionQueue = GetRequestExecutionQueue(false, (
TestNotificationHandler
.Metadata,
TestNotificationHandler
.Instance));
124
var response = await requestExecutionQueue.ExecuteAsync(JToken.FromObject(new MockRequest(1)),
TestNotificationHandler
.Name, lspServices, CancellationToken.None);