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