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