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);
133await Assert.ThrowsAnyAsync<Exception>(async () => await server.ExecuteRequestAsync<TestRequestTypeThree, string>(TestDocumentHandler.MethodName, request, CancellationToken.None));
293await Assert.ThrowsAnyAsync<Exception>(async () => await testLspServer.ExecuteRequestAsync<TestRequestTypeOne, string>(TestDocumentHandler.MethodName, request, CancellationToken.None)).ConfigureAwait(false);
303[ExportCSharpVisualBasicStatelessLspService(typeof(TestDocumentHandler)), PartNotDiscoverable, Shared]
309public const string MethodName = nameof(TestDocumentHandler);
425/// Defines a language specific handler with the same method as <see cref="TestDocumentHandler"/>
428[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.FSharp)]
448/// Defines a language specific handler with the same method as <see cref="TestDocumentHandler"/>
452[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.VisualBasic)]
476[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.FSharp)]