14 references to TestDocumentHandler
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (14)
HandlerTests.cs (14)
30typeof(TestDocumentHandler), 48var response = await server.ExecuteRequestAsync<TestRequestTypeOne, string>(TestDocumentHandler.MethodName, request, CancellationToken.None); 49Assert.Equal(typeof(TestDocumentHandler).Name, response); 95var response = await server.ExecuteRequestAsync<TestRequestTypeOne, string>(TestDocumentHandler.MethodName, request, CancellationToken.None); 108var response = await server.ExecuteRequestAsync<TestRequestTypeTwo, string>(TestDocumentHandler.MethodName, request, CancellationToken.None); 136await Assert.ThrowsAnyAsync<Exception>(async () => await server.ExecuteRequestAsync<TestRequestTypeThree, string>(TestDocumentHandler.MethodName, request, CancellationToken.None)); 296await Assert.ThrowsAnyAsync<Exception>(async () => await testLspServer.ExecuteRequestAsync<TestRequestTypeOne, string>(TestDocumentHandler.MethodName, request, CancellationToken.None)).ConfigureAwait(false); 306[ExportCSharpVisualBasicStatelessLspService(typeof(TestDocumentHandler)), PartNotDiscoverable, Shared] 312public const string MethodName = nameof(TestDocumentHandler); 428/// Defines a language specific handler with the same method as <see cref="TestDocumentHandler"/> 431[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.FSharp)] 451/// Defines a language specific handler with the same method as <see cref="TestDocumentHandler"/> 455[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.VisualBasic)] 479[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.FSharp)]