14 references to TestDocumentHandler
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (14)
HandlerTests.cs (14)
31typeof(TestDocumentHandler), 49var response = await server.ExecuteRequestAsync<TestRequestTypeOne, string>(TestDocumentHandler.MethodName, request, CancellationToken.None); 50Assert.Equal(typeof(TestDocumentHandler).Name, response); 96var response = await server.ExecuteRequestAsync<TestRequestTypeOne, string>(TestDocumentHandler.MethodName, request, CancellationToken.None); 109var 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)); 303await Assert.ThrowsAnyAsync<Exception>(async () => await testLspServer.ExecuteRequestAsync<TestRequestTypeOne, string>(TestDocumentHandler.MethodName, request, CancellationToken.None)).ConfigureAwait(false); 318[ExportCSharpVisualBasicStatelessLspService(typeof(TestDocumentHandler)), PartNotDiscoverable, Shared] 324public const string MethodName = nameof(TestDocumentHandler); 438/// Defines a language specific handler with the same method as <see cref="TestDocumentHandler"/> 441[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.FSharp)] 461/// Defines a language specific handler with the same method as <see cref="TestDocumentHandler"/> 465[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.VisualBasic)] 489[LanguageServerEndpoint(TestDocumentHandler.MethodName, LanguageNames.FSharp)]