42 overrides of Message
dotnet-svcutil-lib (5)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Microsoft.Build (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.Extensions.Options (1)
MSBuild (2)
PresentationFramework (1)
System.ComponentModel.Composition (1)
System.Configuration.ConfigurationManager (1)
System.Diagnostics.EventLog (1)
System.DirectoryServices (1)
System.Net.Http (2)
System.Net.Mail (1)
System.Net.NameResolution (1)
System.Net.Primitives (1)
System.Net.Requests (1)
System.Net.Security (1)
System.Net.Sockets (1)
System.Private.CoreLib (10)
System.Private.Xml (4)
System.Text.Json (1)
System.Xaml (1)
3929 references to Message
aspire (13)
Aspire.Azure.AI.OpenAI.Tests (4)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.Cli.Tests (1)
Aspire.Dashboard (5)
Aspire.Dashboard.Tests (4)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (9)
Aspire.Hosting.Azure.Tests (11)
AzureContainerAppsTests.cs (9)
437Assert.Equal("Only one container app environment is supported at this time. Found: env1", ex.Message);
453Assert.Equal("Multiple container app environments are not supported.", ex.Message);
733Assert.Equal("Automatic Key vault generation is not supported in this environment. Please create a key vault resource directly.", ex.Message);
1057Assert.Equal("The endpoint(s) 'foo' specify an unsupported scheme. The supported schemes are 'http', 'https', and 'tcp'.", ex.Message);
1078Assert.Equal("Multiple external endpoints are not supported", ex.Message);
1097Assert.Equal("External non-HTTP(s) endpoints are not supported", ex.Message);
1117Assert.Equal("HTTP(s) and TCP endpoints cannot be mixed", ex.Message);
1136Assert.Equal($"The endpoint 'http' is an http endpoint and must use port 80", ex.Message);
1155Assert.Equal($"The endpoint 'https' is an https endpoint and must use port 443", ex.Message);
Aspire.Hosting.Containers.Tests (4)
Aspire.Hosting.Docker.Tests (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (38)
WithEndpointTests.cs (4)
168Assert.Equal("Endpoint with name 'mybinding' already exists. Endpoint name may not have been explicitly specified and was derived automatically from scheme argument (e.g. 'http', 'https', or 'tcp'). Multiple calls to WithEndpoint (and related methods) may result in a conflict if name argument is not specified. Each endpoint must have a unique name. For more information on networking in .NET Aspire see: https://aka.ms/dotnet/aspire/networking", ex.Message);
183Assert.Equal("Endpoint with name 'https' already exists. Endpoint name may not have been explicitly specified and was derived automatically from scheme argument (e.g. 'http', 'https', or 'tcp'). Multiple calls to WithEndpoint (and related methods) may result in a conflict if name argument is not specified. Each endpoint must have a unique name. For more information on networking in .NET Aspire see: https://aka.ms/dotnet/aspire/networking", ex.Message);
197Assert.Equal("Endpoint with name 'mybinding' already exists. Endpoint name may not have been explicitly specified and was derived automatically from scheme argument (e.g. 'http', 'https', or 'tcp'). Multiple calls to WithEndpoint (and related methods) may result in a conflict if name argument is not specified. Each endpoint must have a unique name. For more information on networking in .NET Aspire see: https://aka.ms/dotnet/aspire/networking", ex.Message);
241Assert.Equal("The endpoint \"ep\" has no associated container host name.", ex.Message);
Aspire.Keycloak.Authentication.Tests (4)
Aspire.Microsoft.Azure.Cosmos.Tests (5)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (4)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.OpenAI.Tests (5)
Aspire.Oracle.EntityFrameworkCore.Tests (4)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (4)
Aspire.RabbitMQ.Client (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v7.Tests (1)
Aspire.Templates.Tests (5)
BasicTestApp (2)
BasicWebSite (1)
BuildBoss (5)
BuildValidator (3)
Client.ClientBase.IntegrationTests (1)
Client.ExpectedExceptions.IntegrationTests (13)
ExpectedExceptionTests.4.1.0.cs (10)
51Assert.True(exception.Message.Contains(nonExistentHost), string.Format("Expected exception message to contain: '{0}'\nThe exception message was: {1}", nonExistentHost, exception.Message));
114string exceptionMessage = ex.Message;
115string innerExceptionMessage = ex.InnerException?.Message;
184Assert.True(exception.Message.Contains(notFoundUrl), string.Format("Expected exception message to contain: '{0}'\nThe exception message was:{1}", notFoundUrl, exception.Message));
222Assert.True(exception.Message.Contains(protocolExceptionUri), string.Format("Expected exception message to contain: '{0}'\nThe exception was: '{1}'", protocolExceptionUri, exception.Message));
408Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
455Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
ClientSample (2)
Contract.XmlSerializer.IntegrationTests (10)
Crossgen2Tasks (1)
csc (4)
DesignSurface (1)
Diagnostics.EFCore.FunctionalTests (4)
dotnet-dev-certs (14)
dotnet-getdocument (1)
dotnet-openapi (2)
dotnet-sql-cache (4)
dotnet-svcutil.xmlserializer (8)
dotnet-svcutil.xmlserializer.IntegrationTests (10)
dotnet-svcutil-lib (122)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (2)
553throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
571throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
370throw new XmlSchemaException(ResXml.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet);
676throw new XmlSchemaException(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (4)
571SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { "version", schema.Version, tokenDt.TypeCodeString, exception.Message }, exception, schema);
2028SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, particle);
2071SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, anyAttribute);
2145SendValidationEvent(ResXml.Sch_InvalidAttribute, new string[] { attributeName, fx.Message }, fx, xso);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (6)
1307SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception);
1505SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception);
1667SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception);
1882SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning);
1986SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), stringValue, GetTypeName(decl), exception.Message }, exception);
2001SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
240string.Format(SRServiceModel.SFxInvalidMessageBodyErrorSerializingParameter, part.Description.Namespace, part.Description.Name, sx.Message), sx));
436part.Description.Namespace, part.Description.Name, e.Message),
444part.Description.Namespace, part.Description.Name, e.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
149string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, fe.Message), fe));
154string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, se.Message), se));
214string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, fe.Message),
220string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, se.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
400string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, fe.Message), fe));
405string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, se.Message), se));
442string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, fe.Message),
448string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, se.Message),
dotnet-user-jwts (3)
dotnet-user-secrets (3)
ExceptionHandlerSample (1)
GenerateDocumentationAndConfigFiles (2)
GenerateRulesMissingDocumentation (1)
GetDocument.Insider (1)
HttpStress (2)
IIS.FunctionalTests (3)
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IIS.ShadowCopy.Tests (3)
IIS.Tests (7)
IISExpress.FunctionalTests (5)
illink (2)
Infrastructure.Common (2)
InMemory.FunctionalTests (87)
Http2\Http2StreamTests.cs (19)
1165Assert.Equal(expectedError.Message, thrownEx.Message);
1200Assert.Equal(expectedError.Message, thrownEx.Message);
1236Assert.Equal(expectedError.Message, thrownEx.Message);
1272Assert.Equal(expectedError.Message, thrownEx.Message);
1350Assert.Contains(LogMessages, m => m.Exception?.Message.Contains("Response Content-Length mismatch: too many bytes written (12 of 11).") ?? false);
1423Assert.Contains(LogMessages, m => m.Exception?.Message.Contains(CoreStrings.FormatTooFewBytesWritten(0, 11)) ?? false);
3111Assert.Contains(LogMessages, m => (m.Exception?.Message.Contains("App Faulted") ?? false) && m.LogLevel == LogLevel.Error);
3443Assert.Equal(CoreStrings.ConnectionAbortedByApplication, thrownEx.Message);
3470Assert.Equal("The request was aborted", thrownEx.Message);
3472Assert.Equal(CoreStrings.ConnectionAbortedByApplication, thrownEx.InnerException.Message);
4868Assert.Equal(CoreStrings.FormatTooFewBytesWritten(0, 25), ex.Message);
4991Assert.Equal("Writing is not allowed after writer was completed.", ex.Message);
5050Assert.Equal("Writing is not allowed after writer was completed.", ex.Message);
5316Assert.Equal(CoreStrings.FormatTooFewBytesWritten(11, 25), ex.Message);
5387Assert.Equal(CoreStrings.FormatTooFewBytesWritten(11, 25), ex.Message);
Http2\Http2TimeoutTests.cs (12)
200e.Message == CoreStrings.BadRequest_RequestHeadersTimeout)), Times.Once);
229e.Message == CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied)), Times.Once);
394e.Message == CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied)), Times.Once);
449e.Message == CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied)), Times.Once);
501e.Message == CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied)), Times.Once);
555e.Message == CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied)), Times.Once);
621e.Message == CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied)), Times.Once);
668e.Message == CoreStrings.BadRequest_RequestBodyTimeout)), Times.Once);
719e.Message == CoreStrings.BadRequest_RequestBodyTimeout)), Times.Once);
786e.Message == CoreStrings.BadRequest_RequestBodyTimeout)), Times.Once);
854e.Message == CoreStrings.BadRequest_RequestBodyTimeout)), Times.Once);
995e.Message == CoreStrings.BadRequest_RequestBodyTimeout)), Times.Once);
Http3\Http3StreamTests.cs (7)
1245Assert.Equal(CoreStrings.FormatTooFewBytesWritten(0, 25), ex.Message);
1348Assert.Equal("Writing is not allowed after writer was completed.", ex.Message);
1400Assert.Equal("Writing is not allowed after writer was completed.", ex.Message);
1607Assert.Equal(CoreStrings.FormatTooFewBytesWritten(11, 25), ex.Message);
1665Assert.Equal(CoreStrings.FormatTooFewBytesWritten(11, 25), ex.Message);
2081Assert.Equal("The request trailers are not available yet. They may not be available until the full request body is read.", ex.Message);
2575Assert.Equal("The application completed without reading the entire request body.", requestStream.AbortReadException.Message);
MaxRequestBodySizeTests.cs (10)
62Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(globalMaxRequestBodySize), requestRejectedEx.Message);
205Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(perRequestMaxRequestBodySize), requestRejectedEx.Message);
320Assert.Equal(CoreStrings.MaxRequestBodySizeCannotBeModifiedAfterRead, invalidOpEx.Message);
359Assert.Equal(CoreStrings.MaxRequestBodySizeCannotBeModifiedForUpgradedRequests, invalidOpEx.Message);
406Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(0), requestRejectedEx1.Message);
407Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(0), requestRejectedEx2.Message);
458Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(globalMaxRequestBodySize), requestRejectedEx.Message);
575Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(globalMaxRequestBodySize), requestRejectedEx.Message);
619Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(0), requestRejectedEx1.Message);
620Assert.Equal(CoreStrings.FormatBadRequest_RequestBodyTooLarge(0), requestRejectedEx2.Message);
ResponseTests.cs (15)
704Assert.Equal(CoreStrings.FormatHeaderNotAllowedOnResponse("Content-Length", statusCode), ex.Message);
782Assert.Equal(CoreStrings.NonzeroContentLengthNotAllowedOn205, ex.Message);
820Assert.Equal(CoreStrings.FormatWritingToResponseBodyNotSupported(statusCode), ex.Message);
862Assert.Equal(CoreStrings.FormatWritingToResponseBodyNotSupported(205), ex.Message);
986logMessage.Exception.Message);
1024logMessage.Exception.Message);
1064logMessage.Exception.Message);
1099logMessage.Exception.Message);
1151ex.Message.Equals(CoreStrings.FormatTooFewBytesWritten(12, 13), StringComparison.Ordinal));
1208ex.Message.Equals(CoreStrings.FormatTooFewBytesWritten(12, 13), StringComparison.Ordinal));
1733expectedResponse = ex.Message;
1735httpContext.Response.ContentLength = ex.Message.Length;
1736await httpContext.Response.WriteAsync(ex.Message);
3613Assert.Equal(CoreStrings.SynchronousWritesDisallowed, ioEx.Message);
3709Assert.Equal(CoreStrings.SynchronousWritesDisallowed, ioEx.Message);
InProcessWebSite (2)
InteractiveHost.UnitTests (1)
Interop.FunctionalTests (9)
InteropTests (3)
Metrics (2)
Metrics.Legacy (2)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Antiforgery.Test (6)
Microsoft.AspNetCore.App.Analyzers.Test (4)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Core.Test (13)
AuthenticationServiceTests.cs (12)
24Assert.Contains("base", ex.Message);
63Assert.Contains("base", ex.Message);
78Assert.Contains("base", ex.Message);
125Assert.Contains("uber", ex.Message);
126Assert.Contains("signin", ex.Message);
129Assert.Contains("uber", ex.Message);
130Assert.Contains("signin", ex.Message);
148Assert.Contains("uber", ex.Message);
149Assert.Contains("signout", ex.Message);
169Assert.Contains("cannot be used for SignOutAsync", ex.Message);
171Assert.Contains("cannot be used for SignInAsync", ex.Message);
226Assert.Contains("cannot be used for SignInAsync", ex.Message);
Microsoft.AspNetCore.Authentication.Negotiate.Test (11)
Microsoft.AspNetCore.Authentication.Test (72)
OpenIdConnect\OpenIdConnectEventTests.cs (14)
72Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
141Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
250Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
356Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
464Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
574Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
655Assert.Equal("TestException", context.Exception.Message);
687Assert.Equal("TestException", context.Exception.Message);
698Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
720Assert.Equal("TestException", context.Exception.Message);
754Assert.Equal("TestException", context.Exception.Message);
848Assert.Equal("TestException", context.Exception.Message);
853Assert.Equal("TestException", context.Failure.Message);
885Assert.Equal("TestException", context.Failure.Message);
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (14)
72Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
141Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
250Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
356Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
464Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
574Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
655Assert.Equal("TestException", context.Exception.Message);
687Assert.Equal("TestException", context.Exception.Message);
698Assert.Equal("Authentication was aborted from user code.", exception.InnerException.Message);
720Assert.Equal("TestException", context.Exception.Message);
754Assert.Equal("TestException", context.Exception.Message);
848Assert.Equal("TestException", context.Exception.Message);
853Assert.Equal("TestException", context.Failure.Message);
885Assert.Equal("TestException", context.Failure.Message);
Microsoft.AspNetCore.Authorization.Test (2)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Authorization.Tests (3)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.Server.Tests (6)
Microsoft.AspNetCore.Components.Tests (79)
RendererTest.cs (10)
664Assert.Contains("declares more than one parameter", ex.Message);
687Assert.Contains($"must inherit from {typeof(EventArgs).FullName}", ex.Message);
720Assert.Equal("Error", exception.Message);
2925Assert.Equal("The render handle is not yet assigned.", ex.Message);
4432Assert.Contains("Cannot start a batch when one is already in progress.", ex.Message);
4465Assert.Equal($"The {nameof(ParameterView)} instance can no longer be read because it has expired. {nameof(ParameterView)} can only be read synchronously and must not be stored for later use.", ex.Message);
4538Assert.StartsWith($"Render output is invalid for component of type '{typeof(TestComponent).FullName}'. A frame of type 'Element' was left unclosed.", ex.Message);
4885Assert.Equal("The specified component is not a root component", ex.Message);
5044Assert.Contains($"Cannot supply a component of type '{typeof(ComponentWithUnknownRenderMode)}' because the current platform does not support the render mode '{typeof(ComponentWithUnknownRenderMode.UnknownRenderMode)}'.", ex.Message);
5062Assert.Contains($"Cannot supply a component of type '{typeof(TestComponent)}' because the current platform does not support the render mode '{typeof(ComponentWithUnknownRenderMode.UnknownRenderMode)}'.", ex.Message);
Routing\TemplateParserTests.cs (10)
132Assert.Equal(expectedMessage, ex.Message);
150Assert.Equal(expectedMessage, ex.Message);
165Assert.Equal(expectedMessage, ex.Message);
175Assert.Equal(expectedMessage, ex.Message);
185Assert.Equal(expectedMessage, ex.Message);
195Assert.Equal(expectedMessage, ex.Message);
205Assert.Equal(expectedMessage, ex.Message);
218Assert.Equal(expectedMessage, ex.Message);
228Assert.Equal(expectedMessage, ex.Message);
238Assert.Equal(expectedMessage, ex.Message);
Microsoft.AspNetCore.Components.Web.Tests (22)
Microsoft.AspNetCore.Components.WebAssembly (6)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.Components.WebViewE2E.Test (2)
Microsoft.AspNetCore.Cors.Test (1)
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (1)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (4)
Microsoft.AspNetCore.DataProtection.Tests (15)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (13)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (8)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Microsoft.AspNetCore.Diagnostics.Tests (10)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (25)
JsonTranscodingServiceMethodProviderTests.cs (17)
98Assert.Equal("Couldn't find gRPC endpoint for method NoOption.", ex.Message);
169Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidResponseBodyGreeterService'.", ex.Message);
170Assert.Equal("Error binding BadResponseBody on JsonTranscodingInvalidResponseBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
171Assert.Equal("Couldn't find matching field for response body 'NoMatch' on HelloReply.", ex.InnerException!.InnerException!.InnerException!.Message);
181Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidNestedResponseBodyGreeterService'.", ex.Message);
182Assert.Equal("Error binding BadResponseBody on JsonTranscodingInvalidNestedResponseBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
183Assert.Equal("The response body field 'sub.subfield' references a nested field. The response body field name must be on the top-level response message.", ex.InnerException!.InnerException!.InnerException!.Message);
193Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidBodyGreeterService'.", ex.Message);
194Assert.Equal("Error binding BadBody on JsonTranscodingInvalidBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
195Assert.Equal("Couldn't find matching field for body 'NoMatch' on HelloRequest.", ex.InnerException!.InnerException!.InnerException!.Message);
205Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidNestedBodyGreeterService'.", ex.Message);
206Assert.Equal("Error binding BadBody on JsonTranscodingInvalidNestedBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
207Assert.Equal("The body field 'sub.subfield' references a nested field. The body field name must be on the top-level request message.", ex.InnerException!.InnerException!.InnerException!.Message);
217Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidPatternGreeterService'.", ex.Message);
218Assert.Equal("Error binding BadPattern on JsonTranscodingInvalidPatternGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
219Assert.Equal("Error parsing path template 'v1/greeter/{name}'.", ex.InnerException!.InnerException!.InnerException!.Message);
220Assert.Equal("Path template must start with a '/'.", ex.InnerException!.InnerException!.InnerException!.InnerException!.Message);
Microsoft.AspNetCore.HeaderPropagation.Tests (3)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Hosting.Tests (24)
WebHostBuilderTests.cs (15)
78Assert.Equal("The specified factory returned null startup instance.", ex.Message);
425Assert.Equal("A public method named 'ConfigureProduction' or 'Configure' could not be found in the 'Microsoft.AspNetCore.Hosting.Fakes.StartupBoom' type.", exception.Message);
455Assert.Equal("A public method named 'ConfigureProduction' or 'Configure' could not be found in the 'Microsoft.AspNetCore.Hosting.Fakes.StartupBoom' type.", exception.Message);
720Assert.Contains("No application configured.", ex.Message);
842Assert.Equal("WebHostBuilder allows creation only of a single instance of WebHost", ex.Message);
1006Assert.Equal("Microsoft.AspNetCore.Hosting.IStartup isn't supported", exception.Message);
1022Assert.Equal("Building this implementation of IWebHostBuilder is not supported.", exception.Message);
1038Assert.Equal($"ConfigureServices returning an {typeof(IServiceProvider)} isn't supported.", exception.Message);
1230Assert.Contains(sink.Writes, w => w.Exception?.Message == "Startup exception");
1254Assert.Contains(testSink.Writes, w => w.Exception?.Message == "Startup exception");
1313Assert.Contains("No application configured.", exception.Message);
1355Assert.Equal("Hosted Service throws in StartAsync", startEx.Message);
1361Assert.Equal("Hosted Service throws in StopAsync", stopEx.Message);
1380Assert.Equal("Hosted Service throws in StartAsync", startEx.Message);
1387Assert.Equal("Hosted Service throws in StopAsync", stopEx.Message);
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (19)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (6)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (62)
ParameterBindingMethodCacheTests.cs (14)
558Assert.StartsWith($"TryParse method found on {TypeNameHelper.GetTypeDisplayName(type, fullName: false)} with incorrect format. Must be a static method with format", ex.Message);
559Assert.Contains($"bool TryParse(string, IFormatProvider, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})", ex.Message);
560Assert.Contains($"bool TryParse(string, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})", ex.Message);
575Assert.Equal("TryParseFromMultipleInterfaces implements multiple interfaces defining a static Boolean TryParse(System.String, TryParseFromMultipleInterfaces ByRef) method causing ambiguity.", ex.Message);
620Assert.StartsWith($"BindAsync method found on {TypeNameHelper.GetTypeDisplayName(type, fullName: false)} with incorrect format. Must be a static method with format", ex.Message);
621Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}> BindAsync(HttpContext context, ParameterInfo parameter)", ex.Message);
622Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}> BindAsync(HttpContext context)", ex.Message);
623Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}?> BindAsync(HttpContext context, ParameterInfo parameter)", ex.Message);
624Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}?> BindAsync(HttpContext context)", ex.Message);
643Assert.Equal("BindAsyncFromMultipleInterfaces implements multiple interfaces defining a static System.Threading.Tasks.ValueTask`1[Microsoft.AspNetCore.Http.Extensions.Tests.ParameterBindingMethodCacheTests+BindAsyncFromMultipleInterfaces] BindAsync(Microsoft.AspNetCore.Http.HttpContext) method causing ambiguity.", ex.Message);
684Assert.Equal($"No public parameterless constructor found for type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}'.", ex.Message);
694Assert.Equal($"The abstract type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}' is not supported.", ex.Message);
704Assert.Equal($"Only a single public parameterized constructor is allowed for type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}'.", ex.Message);
718ex.Message);
RequestDelegateFactoryTests.cs (18)
293Assert.Equal("'id' is not a route parameter.", ex.Message);
730Assert.Equal("notTryParsable must have a valid TryParse method to support converting from a string. No public static bool object.TryParse(string, out object) method found for notTryParsable.", ex.Message);
739Assert.Equal("Encountered a parameter of type 'System.Runtime.CompilerServices.Closure' without a name. Parameters must have a name.", ex.Message);
773Assert.Equal(@"Failed to bind parameter ""Nullable<int>[] values"" from """".", badHttpRequestException.Message);
910Assert.Equal("Unsupported return type: System.ReadOnlySpan<byte>", ex1.Message);
911Assert.Equal("Unsupported return type: System.Span<byte>", ex2.Message);
912Assert.Equal($"Unsupported return type: {typeof(RefStruct).FullName}", ex3.Message);
1022Assert.Equal(errorMessage, exception.Message);
1128Assert.Equal($"The by reference parameter 'out {typeName} foo' is not supported.", outParamException.Message);
1129Assert.Equal($"The by reference parameter 'in {typeName} foo' is not supported.", inParamException.Message);
1130Assert.Equal($"The by reference parameter 'ref {typeName} foo' is not supported.", refParamException.Message);
1163Assert.Equal("No service for type 'Microsoft.AspNetCore.Routing.Internal.RequestDelegateFactoryTests+MyService' has been registered.", ex.Message);
1521Assert.Contains(message, exception.Message);
2028Assert.Equal("Assigning a value to the IFromFormMetadata.Name property is not supported for parameters of type IFormFileCollection.", nse.Message);
2077Assert.Equal("Assigning a value to the IFromFormMetadata.Name property is not supported for parameters of type IFormCollection.", nse.Message);
2114Assert.Contains($"The nullable type '{TypeNameHelper.GetTypeDisplayName(parameter.ParameterType, fullName: false)}' is not supported, mark the parameter as non-nullable.", exception.Message);
3282Assert.Contains("Microsoft.AspNetCore.Routing.Internal.RequestDelegateFactoryTests+Todo", exception.Message);
3283Assert.Contains("JsonSerializableAttribute", exception.Message);
Microsoft.AspNetCore.Http.Results.Tests (6)
Microsoft.AspNetCore.Http.Tests (8)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.HttpOverrides.Tests (1)
Microsoft.AspNetCore.HttpsPolicy.Tests (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
Microsoft.AspNetCore.Identity.Specification.Tests (4)
Microsoft.AspNetCore.Identity.Test (7)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.InternalTesting.Tests (7)
Microsoft.AspNetCore.JsonPatch (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (14)
Microsoft.AspNetCore.JsonPatch.Tests (25)
Microsoft.AspNetCore.Mvc.Abstractions (4)
Microsoft.AspNetCore.Mvc.Abstractions.Test (13)
Microsoft.AspNetCore.Mvc.Core (10)
Microsoft.AspNetCore.Mvc.Core.Test (99)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (20)
440VerifyMultiLineError(expectedMessage, ex.Message, unorderedStart: 2, unorderedLineCount: 6);
684VerifyMultiLineError(expectedMessage, exception.Message, unorderedStart: 1, unorderedLineCount: 2);
728VerifyMultiLineError(expectedMessage, exception.Message, unorderedStart: 1, unorderedLineCount: 2);
764Assert.Contains("The following errors occurred with attribute routing information:", ex.Message);
765Assert.Contains("Error 1:", ex.Message);
766Assert.Contains("Attribute routes with the same name 'Products' must have the same template:", ex.Message);
767Assert.Contains($"Action: '{sameNameType.FullName}.Get ({assemblyName})' - Template: 'Products'", ex.Message);
768Assert.Contains($"Action: '{sameNameType.FullName}.Get ({assemblyName})' - Template: 'Products/{{id}}'", ex.Message);
769Assert.Contains($"Action: '{sameNameType.FullName}.Put ({assemblyName})' - Template: 'Products/{{id}}'", ex.Message);
770Assert.Contains($"Action: '{sameNameType.FullName}.Post ({assemblyName})' - Template: 'Products'", ex.Message);
771Assert.Contains($"Action: '{sameNameType.FullName}.Delete ({assemblyName})' - Template: 'Products/{{id}}'", ex.Message);
772Assert.Contains("Error 2:", ex.Message);
773Assert.Contains("Attribute routes with the same name 'Items' must have the same template:", ex.Message);
774Assert.Contains($"Action: '{sameNameType.FullName}.GetItems ({assemblyName})' - Template: 'Items/{{id}}'", ex.Message);
775Assert.Contains($"Action: '{sameNameType.FullName}.PostItems ({assemblyName})' - Template: 'Items'", ex.Message);
776Assert.Contains($"Action: '{sameNameType.FullName}.PutItems ({assemblyName})' - Template: 'Items/{{id}}'", ex.Message);
777Assert.Contains($"Action: '{sameNameType.FullName}.DeleteItems ({assemblyName})' - Template: 'Items/{{id}}'", ex.Message);
778Assert.Contains($"Action: '{sameNameType.FullName}.PatchItems ({assemblyName})' - Template: 'Items'", ex.Message);
883Assert.Equal(expectedMessage, ex.Message);
1103Assert.Equal(expected, ex.Message);
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (10)
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
Microsoft.AspNetCore.Mvc.IntegrationTests (22)
Microsoft.AspNetCore.Mvc.Localization.Test (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.Razor.Test (26)
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (20)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (59)
ViewDataDictionaryOfTModelTest.cs (10)
217Assert.Equal(expectedMessage, exception.Message);
220Assert.Equal(expectedMessage, exception.Message);
386Assert.Equal(expectedMessage, exception.Message);
389Assert.Equal(expectedMessage, exception.Message);
392Assert.Equal(expectedMessage, exception.Message);
396Assert.Equal(expectedMessage, exception.Message);
413Assert.Equal(expectedMessage, exception.Message);
416Assert.Equal(expectedMessage, exception.Message);
419Assert.Equal(expectedMessage, exception.Message);
423Assert.Equal(expectedMessage, exception.Message);
Microsoft.AspNetCore.OpenApi.Tests (3)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.RateLimiting.Tests (1)
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Microsoft.AspNetCore.RequestDecompression.Tests (3)
Microsoft.AspNetCore.Rewrite.Tests (13)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Routing.FunctionalTests (8)
Microsoft.AspNetCore.Routing.Tests (54)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (18)
RequestBodyLimitTests.cs (14)
166Assert.Equal("The request's Content-Length 11 is larger than the request body size limit 10.", ex.Message);
169Assert.Equal("The request's Content-Length 11 is larger than the request body size limit 10.", ex.Message);
191Assert.Equal("The request's Content-Length 11 is larger than the request body size limit 10.", ex.Message);
194Assert.Equal("The request's Content-Length 11 is larger than the request body size limit 10.", ex.Message);
216Assert.Equal("The request's Content-Length 11 is larger than the request body size limit 10.", ex.Message);
219Assert.Equal("The request's Content-Length 11 is larger than the request body size limit 10.", ex.Message);
242Assert.Equal("The total number of bytes read 11 has exceeded the request body size limit 10.", ex.Message);
245Assert.Equal("The total number of bytes read 11 has exceeded the request body size limit 10.", ex.Message);
267Assert.Equal("The total number of bytes read 11 has exceeded the request body size limit 10.", ex.Message);
271Assert.Equal("The total number of bytes read 11 has exceeded the request body size limit 10.", ex.Message);
292Assert.Equal("The total number of bytes read 11 has exceeded the request body size limit 10.", ex.Message);
295Assert.Equal("The total number of bytes read 11 has exceeded the request body size limit 10.", ex.Message);
322Assert.Equal("The total number of bytes read 20 has exceeded the request body size limit 10.", ex.Message);
348Assert.Equal("The total number of bytes read 20 has exceeded the request body size limit 10.", ex.Message);
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Server.IntegrationTesting (5)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (38)
Internal\Http3\Http3Connection.cs (5)
178session.Value.Abort(new ConnectionAbortedException(ex.Message, ex.InnerException), errorCode);
182session.Value.Abort(new ConnectionAbortedException(ex.Message), errorCode);
454Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId), Http3ErrorCode.StreamCreationError, new(ex.Message));
731Abort(new ConnectionAbortedException(connectionError.Message, connectionError), connectionError.ErrorCode, ConnectionEndReason.ClosedCriticalStream);
864Abort(new ConnectionAbortedException(ex.Message, ex), ex.ErrorCode, ex.Reason);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (85)
DiagnosticMemoryPoolTests.cs (11)
22Assert.Equal("Object is being disposed twice", exception.Message);
33Assert.Equal("Block is being returned to disposed pool", exception.Message);
43Assert.Equal("Block is being disposed twice", exception.Message);
57Assert.Equal("Block is backed by disposed slab", exception.Message);
70Assert.Equal("Block is backed by disposed slab", exception.Message);
90Assert.Equal("Block is backed by disposed slab", ode.Message);
105Assert.Equal("Block is backed by disposed slab", exception.Message);
194Assert.Equal("Block is backed by disposed slab", exception.Message);
211Assert.Contains("Block is backed by disposed slab", exception.Message);
212Assert.Contains("ExceptionsContainStackTraceWhenEnabled", exception.Message);
218Assert.Contains("Memory pool with active blocks is being disposed, 0 of 1 returned", exception.Message);
Http1\Http1ConnectionTests.cs (13)
83Assert.Equal(CoreStrings.BadRequest_HeadersExceedMaxTotalSize, exception.Message);
100Assert.Equal(CoreStrings.BadRequest_TooManyHeaders, exception.Message);
468Assert.Equal(CoreStrings.BadRequest_RequestLineTooLong, exception.Message);
483Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target), exception.Message);
498Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.EscapeNonPrintable()}"), exception.Message);
515Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(partialRequestLine.EscapeNonPrintable()), exception.Message);
532Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.EscapeNonPrintable()}"), exception.Message);
548Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target.EscapeNonPrintable()), exception.Message);
566Assert.Equal(CoreStrings.BadRequest_MethodNotAllowed, exception.Message);
852Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(string.Empty), exception.Message);
941Assert.Equal(CoreStrings.MaxRequestBodySizeCannotBeModifiedAfterRead, ex.Message);
1009Assert.Equal(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail("a=b"), ex.Message);
1018Assert.Equal(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail("a=b"), ex.Message);
HttpParserTests.cs (14)
96Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(line[..^1].EscapeNonPrintable()), exception.Message);
124Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(requestLine[..^1].EscapeNonPrintable()), exception.Message);
147Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(line.EscapeNonPrintable()), exception.Message);
151Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(method.EscapeNonPrintable() + @" / HTTP/1.1\x0D"), exception.Message);
171Assert.Equal(CoreStrings.FormatBadRequest_UnrecognizedHTTPVersion(httpVersion), exception.Message);
189Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail("GET "), exception.Message);
494Assert.Equal(expectedExceptionMessage, exception.Message);
514Assert.Equal(expectedExceptionMessage, exception.Message);
532Assert.Equal("Invalid request line: ''", exception.Message);
543Assert.Equal(CoreStrings.FormatBadRequest_UnrecognizedHTTPVersion(string.Empty), exception.Message);
557Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestHeader_Detail(string.Empty), exception.Message);
612Assert.Equal(expectedExceptionMessage, exception.Message);
632Assert.Equal(expectedExceptionMessage, exception.Message);
794Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestHeader_Detail(@"ab\x0A"), exception.Message);
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (15)
178Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
254Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
404Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
499Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
622Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
637Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
665Assert.Equal(SR.Format(SR.net_http_hpack_large_table_size_update, 4097, DynamicTableInitialMaxSize), exception.Message);
677Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize), exception.Message);
728Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message);
868Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message);
902Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
Microsoft.AspNetCore.Server.Kestrel.Tests (7)
KestrelConfigurationLoaderTests.cs (6)
682Assert.StartsWith("Error getting private key from", ex.Message);
803Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Certificate"), ex.Message);
812Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Certificate"), ex.Message);
821Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "ClientCertificateMode"), ex.Message);
830Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "SslProtocols"), ex.Message);
839Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Sni"), ex.Message);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (13)
Internal\QuicStreamContext.cs (8)
280error = new ConnectionResetException(ex.Message, ex);
290error = new ConnectionResetException(ex.Message, ex);
295error = new ConnectionAbortedException(ex.Message, ex);
441shutdownReason = new ConnectionResetException(ex.Message, ex);
451shutdownReason = new ConnectionResetException(ex.Message, ex);
458shutdownReason = new ConnectionResetException(ex.Message, ex);
505QuicLog.StreamAbort(_log, this, resolvedErrorCode, abortReason.Message);
529QuicLog.StreamShutdownWrite(_log, this, _shutdownReason.Message);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Shared.Tests (35)
CommandLineApplicationTests.cs (14)
72Assert.Contains("three", ex.Message);
113Assert.Contains("test2", ex.Message);
166ex.Message);
205Assert.Contains($"Missing value for option '{first.LongName}'", ex.Message);
262Assert.Equal($"Unrecognized command or argument '{unexpectedArg}'", exception.Message);
434Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
644Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
677Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
712Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
1119Assert.Equal("Unexpected value 'File2' for option 'file'", exception.Message);
1145Assert.Equal("Unexpected value 'true' for option 'verbose'", exception.Message);
1156Assert.Equal($"Unrecognized command or argument '{inputOption}'", exception.Message);
1167Assert.Equal($"Unrecognized option '{inputOption}'", exception.Message);
1221Assert.Equal($"Unrecognized option '{firstOption}'", exception.Message);
runtime\Http2\HPackDecoderTest.cs (15)
178Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
254Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
404Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
499Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
622Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
637Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
665Assert.Equal(SR.Format(SR.net_http_hpack_large_table_size_update, 4097, DynamicTableInitialMaxSize), exception.Message);
677Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize), exception.Message);
728Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message);
868Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message);
902Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (25)
HubConnectionTests.cs (24)
144Assert.Equal("The client requested version '1', but the server does not support this version.", ex.Message);
665Assert.Equal("An unexpected error occurred invoking 'StreamException' on the server. InvalidOperationException: Error occurred while streaming.", ex.Message);
746LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} during test: {Message}", ex.GetType().Name, ex.Message);
1055Assert.Equal("An unexpected error occurred invoking 'StreamException' on the server. InvalidOperationException: Error occurred while streaming.", ex.Message);
1082Assert.Equal("Failed to invoke '!@#$%' due to an error on the server. HubException: Method does not exist.", ex.Message);
1109Assert.Equal("Failed to invoke '!@#$%' due to an error on the server. HubException: Method does not exist.", ex.Message);
1136Assert.Equal("Failed to invoke 'Echo' due to an error on the server. InvalidDataException: Invocation provides 2 argument(s) but target expects 1.", ex.Message);
1163Assert.StartsWith("Failed to invoke 'Echo' due to an error on the server.", ex.Message);
1191Assert.Equal("Failed to invoke '!@#$%' due to an error on the server. HubException: Method does not exist.", ex.Message);
1219Assert.Equal("Failed to invoke 'Stream' due to an error on the server. InvalidDataException: Invocation provides 2 argument(s) but target expects 1.", ex.Message);
1247Assert.Equal("Failed to invoke 'Stream' due to an error on the server. InvalidDataException: Error binding arguments. Make sure that the types of the provided values match the types of the hub method being invoked.", ex.Message);
1274Assert.Equal("The client attempted to invoke the non-streaming 'HelloWorld' method with a streaming invocation.", ex.Message);
1301Assert.Equal("The client attempted to invoke the streaming 'Stream' method with a non-streaming invocation.", ex.Message);
1328Assert.Equal("The value returned by the streaming method 'StreamBroken' is not a ChannelReader<> or IAsyncEnumerable<>.", ex.Message);
1373Assert.Contains("Connection closed with an error.", exception.Message);
1376Assert.Contains("Connection closed with an error.", hubException.Message);
1377Assert.Contains(exceptionSubstring, hubException.Message);
1391Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message);
1427Assert.Contains("Connection closed with an error.", exception.Message);
1430Assert.Contains("Connection closed with an error.", hubException.Message);
1431Assert.Contains(exceptionSubstring, hubException.Message);
1445Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message);
1465hubException.Message);
1526Assert.Equal("Response status code does not indicate success: 401 (Unauthorized).", ex.Message);
Microsoft.AspNetCore.SignalR.Client.Tests (29)
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Common.Tests (10)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Microsoft.AspNetCore.SignalR.Specification.Tests (7)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (35)
HubConnectionHandlerTests.cs (13)
245Assert.Equal($"Cannot generate proxy implementation for '{typeof(IVoidReturningTypedHubClient).FullName}.{nameof(IVoidReturningTypedHubClient.Send)}'. All client proxy methods must return '{typeof(Task).FullName}' or 'System.Threading.Tasks.Task<T>'.", ex.Message);
502Assert.Equal(exceptionLog.First().Exception.Message, $"The maximum message size of {maximumMessageSize}B was exceeded. The message size can be configured in AddHubOptions.");
532Assert.Equal(exceptionLog.First().Exception.Message, $"The maximum message size of {maximumMessageSize}B was exceeded. The message size can be configured in AddHubOptions.");
583Assert.Equal(exceptionLog.First().Exception.Message, $"The maximum message size of {maximumMessageSize}B was exceeded. The message size can be configured in AddHubOptions.");
715Assert.Equal("Lifetime manager OnConnectedAsync failed.", exception.Message);
785Assert.Equal("Hub OnDisconnected failed.", exception.Message);
1266Assert.Equal("Duplicate definitions of 'OverloadedMethod'. Overloading is not supported.", ex.Message);
1363Assert.Equal("Method 'GenericMethod' is a generic method which is not supported on a Hub.", exception.Message);
2890Assert.Equal("Client hasn't sent a message/ping within the configured ClientTimeoutInterval.", ex.Message);
4586Assert.Equal("The underlying connection was closed.", exception.Message);
5065Assert.Equal("'Microsoft.AspNetCore.SignalR.Tests.Service1' is not in DI as a keyed service.", ex.Message);
5081Assert.Equal("BadServicesHub.BadMethod: The FromKeyedServicesAttribute is not supported on parameters that are also annotated with IFromServiceMetadata.", ex.Message);
5176Assert.Equal(errorMessage, ex.Message);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.TestHost.Tests (13)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.AspNetCore.Tests (13)
WebApplicationTests.cs (13)
1621Assert.Contains("UseRouting", ex.Message);
1837Assert.Equal("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex.Message);
1838Assert.Equal("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex1.Message);
1839Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex2.Message);
1840Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex3.Message);
1841Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex4.Message);
1848Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex5.Message);
1849Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex6.Message);
1850Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex7.Message);
1851Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex8.Message);
2060Assert.Equal("BOOM Filter", ex.Message);
2091Assert.Equal("BOOM", ex.Message);
2610ex.InnerException.InnerException.Message);
Microsoft.AspNetCore.WebUtilities.Tests (28)
FormPipeReaderTests.cs (13)
85Assert.Equal("The form value contains invalid characters.", exception.Message);
110Assert.Equal("Form value count limit 3 exceeded.", exception.Message);
125Assert.Equal("Form value count limit 3 exceeded.", exception.Message);
153Assert.Equal("Form key length limit 10 exceeded.", exception.Message);
181Assert.Equal("Form value length limit 10 exceeded.", exception.Message);
206Assert.Equal("Form value length limit 10 exceeded.", exception.Message);
234valueLengthLimit), exception.Message);
456Assert.Equal("Form key length limit 2 exceeded.", exception.Message);
470Assert.Equal("Form key length limit 2 exceeded.", exception.Message);
484Assert.Equal("Form value length limit 2 exceeded.", exception.Message);
498Assert.Equal("Form value length limit 2 exceeded.", exception.Message);
512Assert.Equal("Form key length limit 10 exceeded.", exception.Message);
526Assert.Equal("Form value length limit 10 exceeded.", exception.Message);
Microsoft.Build (125)
Definition\ToolsetRegistryReader.cs (6)
87InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message);
185InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message);
216InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message);
249InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message);
258InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message);
303InvalidToolsetDefinitionException.Throw(ex, "RegistryReadError", ex.Source, ex.Message);
Evaluation\Evaluator.cs (5)
351ex.Message);
1817ProjectErrorUtilities.ThrowInvalidProject(importElement.SdkLocation, "SDKResolverCriticalFailure", e.Message);
2054ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.UnescapeAll(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message);
2099ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", importFileUnescaped, XMakeAttributes.project, XMakeElements.import, ex.Message);
2317importFileUnescaped, ex.InnerException.Message);
Evaluation\Expander.cs (16)
1025ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotExpandItemMetadata", expression, ex.Message);
1737ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidRegistryPropertyExpression", $"$({registryExpression})", ex.Message);
2379ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2432ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2516ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2589ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2631ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2829ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2864ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2897ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2933ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3083ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "CannotEvaluateItemMetadata", name, ex.Message);
3608ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
3679ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
3690ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
3696ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message);
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
294targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, exception.Message);
298ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message);
307ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message);
445targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, exception.Message);
449ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
458ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
Instance\TaskRegistry.cs (5)
1536targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, exception.Message);
1540ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, e.Message);
1544ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, e.Message);
1609message += e.Message;
1627e.Message;
Utilities\RegistryKeyWrapper.cs (6)
89throw new RegistryException(ex.Message, ex);
119throw new RegistryException(ex.Message, Name + "@" + name, ex);
135throw new RegistryException(ex.Message, Name, ex);
151throw new RegistryException(ex.Message, Name, ex);
181throw new RegistryException(ex.Message, wrapper.Name + "\\" + keyNames[i], ex);
215throw new RegistryException(ex.Message, _wrappedKey == null ? string.Empty : Name, ex);
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (10)
Microsoft.Build.Engine.UnitTests (32)
Microsoft.Build.Framework (6)
Microsoft.Build.Framework.UnitTests (2)
Microsoft.Build.Tasks.CodeAnalysis (9)
Microsoft.Build.Tasks.Core (127)
AssemblyDependency\ReferenceTable.cs (8)
501reference.AddError(new DependencyResolutionException(e.Message, e));
685reference.AddError(new BadImageReferenceException(e.Message, e));
907throw new InvalidParameterValueException("AssemblyFiles", referenceAssemblyFile.ItemSpec, e.Message);
999_log?.LogErrorFromResources("ResolveAssemblyReference.ProblemFindingSatelliteAssemblies", reference.FullPath, e.Message);
1209reference.AddError(new DependencyResolutionException(e.Message, e));
1213reference.AddError(new DependencyResolutionException(e.Message, e));
1774reference.AddError(new DependencyResolutionException(e.Message, e));
2969_log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemReadingImplementationDll", dllPath, e.Message);
AssemblyDependency\ResolveAssemblyReference.cs (11)
1529throw new InvalidParameterValueException("CandidateAssemblyFiles", file, e.Message);
1731message = Log.FormatResourceString("ResolveAssemblyReference.FailedToResolveReference", itemError.Message);
1737message = Log.FormatResourceString("ResolveAssemblyReference.FailedToFindDependentFiles", itemError.Message);
1743message = Log.FormatResourceString("ResolveAssemblyReference.FailedWithException", itemError.Message);
2327Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblyTablesFile", filename, RedistList.RedistListFolder, e.Message);
2337Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblySubsetTablesFile", filename, SubsetListFinder.SubsetListFolder, e.Message);
2399Log.LogErrorWithCodeFromResources(null, e.FileName, e.Line, e.Column, 0, 0, "ResolveAssemblyReference.InvalidAppConfig", AppConfigFile, e.Message);
2486Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2522Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2698"ResolveAssemblyReference.InvalidParameter", e.ParamName, e.ActualValue, e.Message);
2845Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidProfileRedistLocation", filename, RedistList.RedistListFolder, e.Message);
BootstrapperUtil\BootstrapperBuilder.cs (8)
249_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.General", ex.Message));
377_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message));
382_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message));
392_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message));
1056Debug.Fail(ex.Message);
1483_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message));
1489_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message));
1501_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message));
Copy.cs (3)
934Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
939Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
1023destinationFileState.Name, retries, RetryDelayMilliseconds, e.Message,
Delete.cs (3)
153Log.LogWarningWithCodeFromResources("Delete.Retrying", file.ToString(), retries, RetryDelayMilliseconds, e.Message, lockedFileMessage);
182Log.LogWarningWithCodeFromResources("Delete.Error", file.ItemSpec, e.Message, lockedFileMessage);
186Log.LogErrorWithCodeFromResources("Delete.Error", file.ItemSpec, e.Message, lockedFileMessage);
GenerateResource.cs (11)
1481Log.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", item.ItemSpec, e.Message);
1640Log.LogErrorWithCodeFromResources("GenerateResource.CannotWriteSTRFile", StronglyTypedFileName, e.Message);
2620"GenerateResource.MessageTunnel", tfe.Message);
2637"General.InvalidResxFile", e.Message);
2648"General.InvalidResxFile", e.Message);
2737_stronglyTypedFilename, e.Message);
2760FileUtilities.GetFullPathNoThrow(currentOutputFile), io.Message);
2794FileUtilities.GetFullPathNoThrow(inFile), e.Message); // Input file is more useful to log
2805FileUtilities.GetFullPathNoThrow(currentOutputFile), e.Message);
2890_logger.LogWarningWithCodeFromResources("GenerateResource.DeleteCorruptOutputFailed", FileUtilities.GetFullPathNoThrow(filename), deleteException.Message);
3528logger.LogErrorWithCodeFromResources("GenerateResource.STRCodeDomProviderFailed", stronglyTypedLanguage, e.Message);
Touch.cs (5)
83Log.LogErrorWithCodeFromResources("Touch.TimeSyntaxIncorrect", e.Message);
178Log.LogErrorWithCodeFromResources("Touch.CannotCreateFile", file, e.Message);
251Log.LogErrorWithCodeFromResources("Touch.CannotMakeFileWritable", file, e.Message, lockedFileMessage);
267Log.LogErrorWithCodeFromResources("Touch.CannotTouch", file, e.Message, lockedFileMessage);
282Log.LogErrorWithCodeFromResources("Touch.CannotRestoreAttributes", file, e.Message);
Unzip.cs (5)
94Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", DestinationFolder.ItemSpec, e.Message);
143Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotOpenFile", sourceFile.ItemSpec, e.Message);
212Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", destinationPath.DirectoryName, e.Message);
225Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage);
273Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message);
WriteCodeFragment.cs (4)
124Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotWriteOutput", itemSpec, ex.Message, lockedFileMessage);
159Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotCreateProvider", Language, e.Message);
556Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotConvertValue", rawValue, typeName, ex.Message);
586Log.LogMessageFromResources("WriteCodeFragment.CouldNotConvertToInferredType", parameterName, inferredType.Name, ex.Message);
Microsoft.Build.Tasks.UnitTests (6)
Microsoft.Build.UnitTests.Shared (4)
Microsoft.Build.Utilities.Core (24)
ToolLocationHelper.cs (6)
862ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Encountered exception trying to get the SDK props file Location : {0}", e.Message);
1059ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Encountered exception trying to gather the platform references: {0}", e.Message);
1179ErrorUtilities.DebugTraceMessage("GetValueUsingMatchingSDKManifest", "Encountered exception trying to check if SDK is versioned: {0}", e.Message);
3074ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Encountered exception trying to gather platform-specific data: {0}", e.Message);
3169ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message);
3217ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.CouldNotCreateChain", path, pathToReturn, e.Message);
Microsoft.Build.Utilities.UnitTests (5)
Microsoft.CodeAnalysis (63)
Compilation\Compilation.cs (10)
2028diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2033diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2054diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2109diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, NoLocation.Singleton, ex.Message));
3308diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, ex.Message));
3318diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_CantReadResource, Location.None, e.Message, e.InnerException?.Message ?? ""));
3323diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
3485diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, e.Message));
3495diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
Microsoft.CodeAnalysis.CodeStyle (13)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Diagnostics\DiagnosticSuppressorTests.cs (5)
411Diagnostic("AD0001").WithArguments(suppressor.ToString(), typeof(NotImplementedException).FullName, new NotImplementedException().Message, context).WithLocation(1, 1),
455Diagnostic("AD0001").WithArguments(suppressor.ToString(), typeof(NotImplementedException).FullName, new NotImplementedException().Message, context).WithLocation(1, 1),
491&& e.Exception.Message == exceptionMessage)
544&& e.Exception.Message == exceptionMessage)
597&& e.Exception.Message == exceptionMessage)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Microsoft.CodeAnalysis.Features (19)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.InteractiveHost (16)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
167e.Message);
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.CodeAnalysis.Remote.Workspaces (7)
Microsoft.CodeAnalysis.Scripting (4)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (5)
Microsoft.CodeAnalysis.Threading.Package (1)
Microsoft.CodeAnalysis.UnitTests (16)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (19)
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\MSBuildWorkspace.cs (6)
360_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
377_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
507_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, id));
535_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
539_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
543_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (16)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Arcade.Sdk (4)
Microsoft.DotNet.Build.Tasks.Feed (7)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.Build.Tasks.VisualStudio (5)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
Microsoft.DotNet.Deployment.Tasks.Links (3)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.Helix.Sdk (5)
Microsoft.DotNet.Internal.SymbolHelper (3)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SignCheckLibrary (1)
Microsoft.DotNet.SignCheckTask (1)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.Tar (1)
Microsoft.DotNet.VersionTools.Cli (2)
Microsoft.DotNet.XUnitAssert.Tests (527)
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
134e.Message);
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.Ollama.Tests (3)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (17)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (10)
92Assert.Contains("/sys/fs/cgroup/memory/memory.stat", r.Message);
93Assert.Contains("total_inactive_file", r.Message);
119Assert.Contains("/sys/fs/cgroup/memory/memory.usage_in_bytes", r.Message);
138Assert.Contains("lesser than", r.Message);
164Assert.Contains("/proc/meminfo", r.Message);
238Assert.Contains("/sys/fs/cgroup/cpuset/cpuset.cpus", r.Message);
259Assert.Contains("/sys/fs/cgroup/cpuset/cpuset.cpus", r.Message);
287Assert.Contains("/sys/fs/cgroup/cpu/cpu.cfs_", r.Message);
337Assert.Contains("proc/stat", r.Message);
354Assert.Contains("/sys/fs/cgroup/cpu/cpu.shares", r.Message);
Microsoft.Extensions.Features.Tests (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (3)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.ServiceDiscovery.Tests (4)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.Gen.Logging.Generated.Tests (8)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.JSInterop (1)
Microsoft.JSInterop.Tests (7)
Microsoft.JSInterop.WebAssembly (1)
Microsoft.Maui (2)
Microsoft.Maui.Controls (3)
Microsoft.Maui.Controls.Build.Tasks (2)
XamlCTask.cs (2)
317 LoggingHelper.LogError("XamlC", null, xpe.HelpLink, xamlFilePath, xpe.XmlInfo.LineNumber, xpe.XmlInfo.LinePosition, 0, 0, xpe.Message);
321 LoggingHelper.LogError("XamlC", null, e.HelpLink, xamlFilePath, 0, 0, 0, 0, e.Message);
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (8)
Microsoft.ML.AutoML.Tests (3)
Microsoft.ML.Core (16)
Microsoft.ML.Core.Tests (7)
Microsoft.ML.CpuMath (1)
Microsoft.ML.Data (4)
Microsoft.ML.DataView (1)
Microsoft.ML.Ensemble (1)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.FastTree (1)
Microsoft.ML.Maml (3)
MAML.cs (3)
169ch.Error(e.Sensitivity(), e.Message);
248writer.WriteLine("({0}) Unexpected exception: {1}, '{2}'", index, e.Message, e.GetType());
266ch.Error(e.Sensitivity(), "({0}) Unexpected exception: {1}, '{2}'", index, e.Message, e.GetType());
Microsoft.ML.Parquet (4)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.ResultProcessor (1)
Microsoft.ML.Samples (1)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (4)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.TestFramework (2)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (25)
SvmLightTests.cs (11)
247Assert.Contains("Duplicate keys found in dataset", ex.InnerException.Message);
362Assert.Contains("Encountered 0 index while parsing a 1-based dataset", ex.InnerException.Message);
381Assert.Contains("Encountered non-parsable index '-1' while parsing dataset", ex.InnerException.Message);
400Assert.Contains("Encountered non-parsable index 'a' while parsing dataset", ex.InnerException.Message);
407Assert.Contains("No int parsable keys found during key transform inference", ex.Message);
444Assert.Contains("If the number of features is not specified, a dataset must be provided to infer it.", ex.Message);
446Assert.Contains("To use the text feature names option, a dataset must be provided", ex.Message);
513Assert.Contains("Column Label not found in data", ex.Message);
521Assert.Contains("Column Features not found in data", ex.Message);
529Assert.Contains("Column Group not found in data", ex.Message);
537Assert.Contains("Column Weight not found in data", ex.Message);
Microsoft.ML.Tokenizers (5)
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.VisualBasic.Core (7)
Microsoft.VisualBasic.Forms.Tests (6)
Microsoft.VisualStudio.IntegrationTest.Setup (2)
Microsoft.VisualStudio.LanguageServices (13)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
MiddlewareAnalysisSample (1)
MSBuild (37)
XMake.cs (25)
199string message = exception.Message.TrimEnd();
964Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ConfigurationFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
982Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
988Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixWithErrorCode", e.Message));
1006Console.WriteLine($"MSBUILD : error {e.ErrorCode}: {e.Message}");
1019$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : "")}");
1025Console.WriteLine($"MSBUILD : error {e.ErrorCode}: {e.Message}");
1044$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}");
1051$"{e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}");
3214CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3246CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3265CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3328CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3377ex.Message);
3382ex.Message);
3408CommandLineSwitchException.Throw("InvalidNodeNumberValue", input[0], ex.Message);
3412CommandLineSwitchException.Throw("InvalidNodeNumberValue", input[0], ex.Message);
3508CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3512CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
4140throw new LoggerException(e.Message, e);
4447Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OptionalLoggerCreationMessage", loggerDescription.Name, e.Message));
4521var message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidLogFileFormat", ex.Message);
MSBuildTaskHost (6)
PresentationBuildTasks (15)
PresentationCore (4)
PresentationFramework (24)
PresentationUI (2)
ReachFramework (8)
Replay (4)
Roslyn.Compilers.Extension (1)
Roslyn.Test.PdbUtilities (2)
RulesetToEditorconfigConverter (1)
RunTests (6)
ScenarioTests.Common.Tests (1)
Security.TransportSecurity.IntegrationTests (7)
SemanticSearch.BuildTask (2)
Shared (1)
Shared.Tests (81)
Throw\IntegerTests.cs (24)
113Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
124Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
135Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
146Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
157Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
168Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
273Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
284Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
295Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
306Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
317Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
328Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
Throw\LongTests.cs (24)
113Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
124Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
135Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
146Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
157Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
168Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
273Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
284Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
295Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
306Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
317Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
328Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
Throw\ThrowTest.cs (19)
21Assert.Contains(message, exception.Message, StringComparison.Ordinal);
32Assert.Contains(message, exception.Message, StringComparison.Ordinal);
149Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
163Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
177Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
185Assert.Equal(expectedMessage, exceptionImplicitArgumentName.Message);
191Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
199Assert.Equal(expectedMessage, exceptionImplicitArgumentName.Message);
273Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
284Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
382Assert.Contains(nameof(listButActuallyNull), exceptionImplicitArgumentName.Message);
420Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
SignalR.Client.FunctionalTestApp (1)
SocialSample (1)
Sockets.BindTests (4)
Sockets.FunctionalTests (1)
System.Collections.Concurrent (1)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (16)
System.ComponentModel.TypeConverter (1)
System.Configuration.ConfigurationManager (10)
System.Data.Common (8)
System.Data.Odbc (2)
System.Diagnostics.DiagnosticSource (1)
System.Drawing.Primitives (1)
System.IO.Pipelines (1)
System.IO.Ports (1)
System.Net.Http (15)
System.Net.Http.Json (1)
System.Net.HttpListener (10)
System.Net.Mail (3)
System.Net.NameResolution (2)
System.Net.Primitives (1)
System.Net.Requests (8)
System.Net.Security (4)
System.Net.Sockets (10)
System.Net.WebSockets (3)
System.Private.CoreLib (32)
System.Private.DataContractSerialization (9)
System.Private.Windows.Core (14)
System.Private.Xml (27)
System\Xml\Schema\DataTypeImplementation.cs (2)
535throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
556throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
System\Xml\Schema\FacetChecker.cs (2)
371throw new XmlSchemaException(SR.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet!.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet);
673throw new XmlSchemaException(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
System\Xml\Schema\Preprocessor.cs (4)
546SendValidationEvent(SR.Sch_AttributeValueDataTypeDetailed, new string[] { "version", schema.Version, tokenDt.TypeCodeString, exception.Message }, exception, schema);
1993SendValidationEvent(SR.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, particle);
2037SendValidationEvent(SR.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, anyAttribute);
2114SendValidationEvent(SR.Sch_InvalidAttribute, new string[] { attributeName, fx.Message }, fx, xso);
System\Xml\Schema\XmlSchemaValidator.cs (6)
1278SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception);
1479SendValidationEvent(SR.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName!, _context.Namespace!), stringValue, GetTypeName(decl), exception.Message }, exception);
1650SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception);
1861SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning);
1963SendValidationEvent(SR.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), stringValue, GetTypeName(decl), exception.Message }, exception);
1978SendValidationEvent(SR.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName!, _context.Namespace!), stringValue, GetTypeName(decl), exception.Message }, exception);
System.Reflection.Metadata (4)
System.Resources.Extensions (1)
System.Security.Cryptography (1)
System.ServiceModel.NetFramingBase (16)
System.ServiceModel.NetNamedPipe (5)
System.ServiceModel.Primitives.Tests (25)
Channels\CommunicationObjectTest.cs (8)
322Assert.True(String.Equals(exceptionMessage, actualException.Message),
324exceptionMessage, actualException.Message));
349Assert.True(String.Equals(exceptionMessage, actualException.Message),
351exceptionMessage, actualException.Message));
376Assert.True(String.Equals(exceptionMessage, actualException.Message),
378exceptionMessage, actualException.Message));
407Assert.True(String.Equals(exceptionMessage, actualException.Message),
409exceptionMessage, actualException.Message));
Channels\CustomChannelTest.cs (12)
251Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
253expectedExceptionMessage, actualException.Message));
306Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
308expectedExceptionMessage, actualException.Message));
471Assert.True(String.Equals(caughtException.Message, thrownException.Message),
473thrownException.Message, caughtException.Message));
725Assert.True(string.Equals(thrownException.Message, caughtException.Message),
727thrownException.Message, caughtException.Message));
System.Text.Json (5)
System.Text.RegularExpressions.Generator (2)
System.Threading.Tasks.Dataflow (1)
System.Web.Services.Description (1)
System.Windows.Forms (41)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Design (35)
System.Windows.Forms.Design.Tests (6)
System.Windows.Forms.Interop.Tests (2)
System.Windows.Forms.Primitives.TestUtilities (3)
System.Windows.Forms.Tests (2)
System.Windows.Forms.UI.IntegrationTests (1)
System.Xaml (6)
TaskUsageLogger (1)
Templates.Blazor.Tests (16)
Templates.Blazor.WebAssembly.Auth.Tests (17)
Templates.Blazor.WebAssembly.Tests (17)
Templates.Mvc.Tests (17)
Templates.Tests (17)
TestDiscoveryWorker (1)
Text.Analyzers (1)
UIAutomationClientSideProviders (3)
UnitTests.Common (1)
vbc (4)
VBCSCompiler (6)
WindowsBase.Tests (14)
WinFormsControlsTest (3)
XmlFormattersWebSite (1)
xunit.assert (5)
xunit.console (2)