15 references to HandlerTests
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (15)
HandlerTests.cs (15)
153if (exception.Message == nameof(HandlerTests) || exception.InnerException?.Message == nameof(HandlerTests)) 159var response = Task.FromException<TestConfigurableResponse>(new InvalidOperationException(nameof(HandlerTests))); 181if (exception.Message == nameof(HandlerTests) || exception.InnerException?.Message == nameof(HandlerTests)) 187var response = Task.FromException<TestConfigurableResponse>(new StreamJsonRpc.LocalRpcException(nameof(HandlerTests)) { ErrorCode = LspErrorCodes.ContentModified }); 209if (exception.Message == nameof(HandlerTests) || exception.InnerException?.Message == nameof(HandlerTests)) 215var response = Task.FromException<TestConfigurableResponse>(new InvalidOperationException(nameof(HandlerTests))); 239if (exception.Message == nameof(HandlerTests) || exception.InnerException?.Message == nameof(HandlerTests)) 245var response = Task.FromException<TestConfigurableResponse>(new OperationCanceledException(nameof(HandlerTests))); 267if (exception.Message == nameof(HandlerTests) || exception.InnerException?.Message == nameof(HandlerTests)) 273var response = Task.FromException<TestConfigurableResponse>(new OperationCanceledException(nameof(HandlerTests)));