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.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.ServiceModel.Primitives (1)
System.Text.Json (1)
System.Xaml (1)
4758 references to Message
aspire (75)
Aspire.Azure.AI.OpenAI.Tests (4)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.Cli.EndToEnd.Tests (2)
Aspire.Cli.Tests (42)
Aspire.Dashboard (12)
Aspire.Dashboard.Tests (10)
Aspire.Deployment.EndToEnd.Tests (81)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (22)
Aspire.Hosting.Azure (7)
Aspire.Hosting.Azure.AIFoundry (2)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.Tests (18)
Aspire.Hosting.Containers.Tests (4)
Aspire.Hosting.DevTunnels (5)
Aspire.Hosting.DevTunnels.Tests (3)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Kubernetes.Tests (1)
Aspire.Hosting.Maui.Tests (2)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.RemoteHost.Tests (8)
Aspire.Hosting.Tasks (1)
Aspire.Hosting.Testing.Tests (5)
Aspire.Hosting.Tests (108)
Pipelines\DistributedApplicationPipelineTests.cs (37)
354Assert.Contains("A step with the name 'step1' has already been added", ex.Message);
355Assert.Contains("step1", ex.Message);
372Assert.Contains("depends on unknown step", ex.Message);
373Assert.Contains("unknown-step", ex.Message);
390Assert.Contains("required by unknown step", ex.Message);
391Assert.Contains("unknown-step", ex.Message);
423Assert.Contains("Circular dependency", ex.Message);
424Assert.Contains("step1", ex.Message);
425Assert.Contains("step2", ex.Message);
447Assert.Contains("failing-step", ex.Message);
448Assert.Contains("failed", ex.Message);
450Assert.Equal(exceptionMessage, ex.InnerException.Message);
606Assert.Contains("Step 'step1' is required by unknown step 'unknown-step'", exception.Message);
630Assert.Contains("Step 'step2' is required by unknown step 'unknown-step'", exception.Message);
665Assert.Contains("A step with the name 'step1' has already been added to the pipeline", exception.Message);
694Assert.Contains("Duplicate step name", exception.Message);
695Assert.Contains("duplicate-step", exception.Message);
719Assert.Contains("failing-step", exception.Message);
762Assert.Contains("failing-dependency", ex.Message);
763Assert.Contains("failed", ex.Message);
804Assert.Contains("Circular dependency", ex.Message);
806Assert.True(ex.Message.Contains("stepA") || ex.Message.Contains("stepB") || ex.Message.Contains("stepC"),
867Assert.Contains("failing-step", ex.Message);
868Assert.Contains("failed", ex.Message);
1844Assert.Contains("Step 'non-existent-step' not found in pipeline", ex.Message);
1845Assert.Contains("Available steps:", ex.Message);
1846Assert.Contains("'step1'", ex.Message);
1847Assert.Contains("'step2'", ex.Message);
1848Assert.Contains("'step3'", ex.Message);
2154Assert.Contains("no container registry is available", exception.Message);
2155Assert.Contains("test-project", exception.Message);
2177Assert.Contains("no container registry is available", exception.Message);
2178Assert.Contains("test-project", exception.Message);
2207Assert.Contains("Destination set to Archive but OutputPath is not configured", exception.Message);
2208Assert.Contains("test-project", exception.Message);
Aspire.Keycloak.Authentication.Tests (4)
Aspire.Microsoft.Azure.Cosmos.Tests (5)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (4)
Aspire.MongoDB.EntityFrameworkCore.Tests (3)
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.v6.Tests (1)
Aspire.Templates.Tests (5)
aspire-managed (4)
aspire-server (7)
BasicWebSite (1)
BuildActionTelemetryTable (2)
BuildBoss (5)
BuildValidator (3)
CatalogDb (1)
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)
CodeStyleConfigFileGenerator (2)
Contract.XmlSerializer.IntegrationTests (10)
Crossgen2Tasks (1)
csc (6)
DemoConsole (1)
Diagnostics.EFCore.FunctionalTests (4)
dotnet-dev-certs (15)
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-svcutil-lib.Tests (2)
dotnet-user-jwts (3)
dotnet-user-secrets (3)
EventHubsConsumer (1)
ExampleTask (1)
ExampleTaskX64 (1)
ExampleTaskX86 (1)
ExceptionHandlerSample (1)
GenerateDocumentationAndConfigFiles (16)
GenerateRulesMissingDocumentation (1)
GetDocument.Insider (1)
HttpStress (2)
IdentitySample.PasskeyConformance (2)
IdentitySample.PasskeyUI (1)
IIS.FunctionalTests (3)
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.ShadowCopy.Tests (3)
IIS.Tests (7)
IISExpress.FunctionalTests (5)
illink (2)
Infrastructure.Common (2)
Infrastructure.IntegrationTests (1)
Infrastructure.Tests (1)
InMemory.FunctionalTests (88)
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 (8)
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);
2892Assert.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 (14)
Metrics.Legacy (14)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Antiforgery.Test (13)
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 (3)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Authorization.Tests (3)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (19)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.Server.Tests (25)
Circuits\RemoteJSDataStreamTest.cs (13)
115Assert.Equal("An error occurred while reading the remote stream: some error", ex.Message);
129Assert.Equal("The incoming data chunk cannot be empty.", ex.Message);
134Assert.Equal("The incoming data chunk cannot be empty.", ex.Message);
148Assert.Equal("The incoming data chunk exceeded the permitted length.", ex.Message);
153Assert.Equal("The incoming data chunk exceeded the permitted length.", ex.Message);
168Assert.Equal("The incoming data stream declared a length 100, but 110 bytes were sent.", ex.Message);
173Assert.Equal("The incoming data stream declared a length 100, but 110 bytes were sent.", ex.Message);
192Assert.Equal("Out of sequence chunk received, expected 5, but received 7.", ex.Message);
197Assert.Equal("Out of sequence chunk received, expected 5, but received 7.", ex.Message);
208Assert.Equal("Did not receive any data in the allotted time.", ex.Message);
233Assert.Equal("Did not receive any data in the allotted time.", ex.Message);
249Assert.Equal("Did not receive any data in the allotted time.", ex.Message);
282Assert.Equal("Did not receive any data in the allotted time.", ex.Message);
Microsoft.AspNetCore.Components.Tests (89)
RendererTest.cs (10)
665Assert.Contains("declares more than one parameter", ex.Message);
688Assert.Contains($"must inherit from {typeof(EventArgs).FullName}", ex.Message);
721Assert.Equal("Error", exception.Message);
2926Assert.Equal("The render handle is not yet assigned.", ex.Message);
4433Assert.Contains("Cannot start a batch when one is already in progress.", ex.Message);
4466Assert.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);
4539Assert.StartsWith($"Render output is invalid for component of type '{typeof(TestComponent).FullName}'. A frame of type 'Element' was left unclosed.", ex.Message);
4886Assert.Equal("The specified component is not a root component", ex.Message);
5079Assert.Contains($"Cannot supply a component of type '{typeof(ComponentWithUnknownRenderMode)}' because the current platform does not support the render mode '{typeof(ComponentWithUnknownRenderMode.UnknownRenderMode)}'.", ex.Message);
5097Assert.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 (25)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebAssembly.Tests (5)
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 (21)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (14)
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 (11)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (27)
ConverterTests\JsonConverterReadTests.cs (5)
323AssertReadJsonError<HelloRequest.Types.DataTypes>(json, ex => Assert.Equal(@"Error converting value ""INVALID"" to enum type Transcoding.HelloRequest+Types+DataTypes+Types+NestedEnum.", ex.Message), descriptorRegistry: serviceDescriptorRegistry, deserializeOld: false);
597AssertReadJsonError<HelloRequest>(json, ex => Assert.Equal("Multiple values specified for oneof oneof_test", ex.Message.TrimEnd('.')));
608AssertReadJsonError<HelloRequest>(json, ex => Assert.Equal("Multiple values specified for oneof oneof_test", ex.Message.TrimEnd('.')), deserializeOld: false, settings: new GrpcJsonSettings { PropertyNameCaseInsensitive = true });
725AssertReadJsonError<NullValueContainer>(json, ex => Assert.Equal("Invalid enum value: MONKEY for enum type: google.protobuf.NullValue", ex.Message));
833AssertReadJsonError<FieldNameCaseMessage>(json, ex => Assert.Equal("The JSON property name for 'Transcoding.FieldNameCaseMessage.A' collides with another property.", ex.Message), deserializeOld: false, settings: new GrpcJsonSettings { PropertyNameCaseInsensitive = true });
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 (5)
Microsoft.AspNetCore.Hosting.Tests (24)
WebHostBuilderTests.cs (15)
80Assert.Equal("The specified factory returned null startup instance.", ex.Message);
427Assert.Equal("A public method named 'ConfigureProduction' or 'Configure' could not be found in the 'Microsoft.AspNetCore.Hosting.Fakes.StartupBoom' type.", exception.Message);
459Assert.Equal("A public method named 'ConfigureProduction' or 'Configure' could not be found in the 'Microsoft.AspNetCore.Hosting.Fakes.StartupBoom' type.", exception.Message);
724Assert.Contains("No application configured.", ex.Message);
846Assert.Equal("WebHostBuilder allows creation only of a single instance of WebHost", ex.Message);
1010Assert.Equal("Microsoft.AspNetCore.Hosting.IStartup isn't supported", exception.Message);
1026Assert.Equal("Building this implementation of IWebHostBuilder is not supported.", exception.Message);
1042Assert.Equal($"ConfigureServices returning an {typeof(IServiceProvider)} isn't supported.", exception.Message);
1234Assert.Contains(sink.Writes, w => w.Exception?.Message == "Startup exception");
1258Assert.Contains(testSink.Writes, w => w.Exception?.Message == "Startup exception");
1317Assert.Contains("No application configured.", exception.Message);
1359Assert.Equal("Hosted Service throws in StartAsync", startEx.Message);
1365Assert.Equal("Hosted Service throws in StopAsync", stopEx.Message);
1384Assert.Equal("Hosted Service throws in StartAsync", startEx.Message);
1391Assert.Equal("Hosted Service throws in StopAsync", stopEx.Message);
Microsoft.AspNetCore.Http.Abstractions.Tests (17)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (6)
Microsoft.AspNetCore.Http.Extensions (1)
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 (5)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
Microsoft.AspNetCore.Identity.Specification.Tests (4)
Microsoft.AspNetCore.Identity.Test (141)
Passkeys\PasskeyHandlerAssertionTest.cs (65)
45Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
46Assert.Contains("was missing required properties including: 'id'", result.Failure.Message);
64Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
80Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
81Assert.Contains("base64url string", result.Failure.Message);
96Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
97Assert.Contains("was missing required properties including: 'type'", result.Failure.Message);
115Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
130Assert.StartsWith("Expected credential type 'public-key', got 'unexpected-value'", result.Failure.Message);
145Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
146Assert.Contains("was missing required properties including: 'response'", result.Failure.Message);
164Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
180Assert.StartsWith("The assertion state JSON had an invalid format", result.Failure.Message);
181Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
198Assert.StartsWith("The assertion state JSON had an invalid format", result.Failure.Message);
214Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
215Assert.Contains("was missing required properties including: 'clientDataJSON'", result.Failure.Message);
233Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
248Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
264Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
265Assert.Contains("was missing required properties including: 'authenticatorData'", result.Failure.Message);
283Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
299Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
300Assert.Contains("base64url string", result.Failure.Message);
315Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message);
331Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
332Assert.Contains("was missing required properties including: 'signature'", result.Failure.Message);
350Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
366Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
367Assert.Contains("base64url string", result.Failure.Message);
382Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
399Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
416Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
431Assert.StartsWith("The authenticator response was missing a user handle", result.Failure.Message);
450Assert.StartsWith("The provided user handle", result.Failure.Message);
465Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
466Assert.Contains("was missing required properties including: 'type'", result.Failure.Message);
484Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
502Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.get'", result.Failure.Message);
517Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
518Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
536Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
551Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
567Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
568Assert.Contains("base64url string", result.Failure.Message);
585Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
600Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
601Assert.Contains("was missing required properties including: 'origin'", result.Failure.Message);
619Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
634Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message);
656Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message);
673Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
688Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
689Assert.Contains("was missing required properties including: 'status'", result.Failure.Message);
708Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message);
752result.Failure.Message);
767Assert.StartsWith("The authenticator data flags did not include the 'UserPresent' flag", result.Failure.Message);
797Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
814Assert.StartsWith("The authenticator data included an invalid Relying Party ID hash", result.Failure.Message);
831Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
874result.Failure.Message);
917Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message);
935result.Failure.Message);
953result.Failure.Message);
970Assert.StartsWith("The provided credential does not belong to the specified user", result.Failure.Message);
Passkeys\PasskeyHandlerAttestationTest.cs (69)
45Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
46Assert.Contains("was missing required properties including: 'id'", result.Failure.Message);
64Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
80Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
81Assert.Contains("base64url string", result.Failure.Message);
96Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
97Assert.Contains("was missing required properties including: 'type'", result.Failure.Message);
115Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
130Assert.StartsWith("Expected credential type 'public-key', got 'unexpected-value'", result.Failure.Message);
145Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
146Assert.Contains("was missing required properties including: 'response'", result.Failure.Message);
164Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
180Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
181Assert.Contains("was missing required properties including: 'id'", result.Failure.Message);
199Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
215Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
216Assert.Contains("was missing required properties including: 'name'", result.Failure.Message);
234Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
250Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
251Assert.Contains("was missing required properties including: 'displayName'", result.Failure.Message);
269Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
284Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
285Assert.Contains("was missing required properties including: 'userEntity'", result.Failure.Message);
301Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
302Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
319Assert.StartsWith("The attestation state JSON had an invalid format", result.Failure.Message);
335Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
336Assert.Contains("was missing required properties including: 'clientDataJSON'", result.Failure.Message);
354Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
369Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
385Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
386Assert.Contains("was missing required properties including: 'attestationObject'", result.Failure.Message);
404Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
419Assert.StartsWith("The attestation object had an invalid format", result.Failure.Message);
434Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
435Assert.Contains("was missing required properties including: 'type'", result.Failure.Message);
453Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
471Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.create'", result.Failure.Message);
486Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
487Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
505Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
520Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
536Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
537Assert.Contains("base64url string", result.Failure.Message);
554Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
569Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
570Assert.Contains("was missing required properties including: 'origin'", result.Failure.Message);
588Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
603Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message);
625Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message);
642Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
657Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
658Assert.Contains("was missing required properties including: 'status'", result.Failure.Message);
677Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message);
707Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message);
732Assert.StartsWith("The attestation object had an invalid format", result.Failure.Message);
748Assert.StartsWith("The attestation object did not include an attestation statement format", result.Failure.Message);
764Assert.StartsWith("The attestation object did not include an attestation statement", result.Failure.Message);
780Assert.StartsWith("The attestation object did not include authenticator data", result.Failure.Message);
795Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message);
811Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
827Assert.StartsWith("The attested credential data had an invalid byte count of 0", result.Failure.Message);
843Assert.StartsWith("No attested credential data was provided by the authenticator", result.Failure.Message);
858Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
905Assert.StartsWith("The credential public key algorithm does not match any of the supported algorithms", result.Failure.Message);
917Assert.StartsWith("The attestation statement was not valid", result.Failure.Message);
933Assert.StartsWith("Expected the credential ID to have a length between 1 and 1023 bytes", result.Failure.Message);
952result.Failure.Message);
966Assert.StartsWith("The credential is already registered for a user", result.Failure.Message);
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.InternalTesting.Tests (11)
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 (101)
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 (1)
Microsoft.AspNetCore.Rewrite.Tests (13)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Routing.FunctionalTests (8)
Microsoft.AspNetCore.Routing.Tests (59)
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 (39)
Internal\Http3\Http3Connection.cs (5)
178session.Value.Abort(new ConnectionAbortedException(ex.Message, ex.InnerException), errorCode);
182session.Value.Abort(new ConnectionAbortedException(ex.Message), errorCode);
456Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId), Http3ErrorCode.StreamCreationError, new(ex.Message));
746Abort(new ConnectionAbortedException(connectionError.Message, connectionError), connectionError.ErrorCode, ConnectionEndReason.ClosedCriticalStream);
875Abort(new ConnectionAbortedException(ex.Message, ex), ex.ErrorCode, ex.Reason);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (93)
DiagnosticMemoryPoolTests.cs (11)
23Assert.Equal("Object is being disposed twice", exception.Message);
34Assert.Equal("Block is being returned to disposed pool", exception.Message);
44Assert.Equal("Block is being disposed twice", exception.Message);
58Assert.Equal("Block is backed by disposed slab", exception.Message);
71Assert.Equal("Block is backed by disposed slab", exception.Message);
91Assert.Equal("Block is backed by disposed slab", ode.Message);
106Assert.Equal("Block is backed by disposed slab", exception.Message);
195Assert.Equal("Block is backed by disposed slab", exception.Message);
212Assert.Contains("Block is backed by disposed slab", exception.Message);
213Assert.Contains("ExceptionsContainStackTraceWhenEnabled", exception.Message);
219Assert.Contains("Memory pool with active blocks is being disposed, 0 of 1 returned", exception.Message);
Http1\Http1ConnectionTests.cs (13)
86Assert.Equal(CoreStrings.BadRequest_HeadersExceedMaxTotalSize, exception.Message);
103Assert.Equal(CoreStrings.BadRequest_TooManyHeaders, exception.Message);
460Assert.Equal(CoreStrings.BadRequest_RequestLineTooLong, exception.Message);
475Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target), exception.Message);
490Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.EscapeNonPrintable()}"), exception.Message);
507Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(partialRequestLine.EscapeNonPrintable()), exception.Message);
524Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.EscapeNonPrintable()}"), exception.Message);
540Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target.EscapeNonPrintable()), exception.Message);
558Assert.Equal(CoreStrings.BadRequest_MethodNotAllowed, exception.Message);
844Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(string.Empty), exception.Message);
933Assert.Equal(CoreStrings.MaxRequestBodySizeCannotBeModifiedAfterRead, ex.Message);
1001Assert.Equal(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail("a=b"), ex.Message);
1010Assert.Equal(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail("a=b"), ex.Message);
HttpParserTests.cs (16)
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_Detail(httpVersion), exception.Message);
189Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail("GET "), exception.Message);
494Assert.Equal(expectedExceptionMessage, exception.Message);
514Assert.Equal(expectedExceptionMessage, exception.Message);
532Assert.Equal(CoreStrings.BadRequest_InvalidRequestLine, exception.Message);
543Assert.Equal(CoreStrings.BadRequest_UnrecognizedHTTPVersion, exception.Message);
557Assert.Equal(CoreStrings.BadRequest_InvalidRequestHeader, exception.Message);
612Assert.Equal(expectedExceptionMessage, exception.Message);
632Assert.Equal(expectedExceptionMessage, exception.Message);
794Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestHeader_Detail(@"ab\x0A"), exception.Message);
821Assert.Contains("HTTP/9.9", exception.Message);
848Assert.Contains("InvalidHeaderNoColon", exception.Message);
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (17)
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);
698Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, 10), exception.Message);
716Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, 10), exception.Message);
767Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message);
907Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message);
941Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
Microsoft.AspNetCore.Server.Kestrel.Tests (8)
KestrelConfigurationLoaderTests.cs (6)
682Assert.StartsWith("Error getting private key from", ex.Message);
1051Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Certificate"), ex.Message);
1060Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Certificate"), ex.Message);
1069Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "ClientCertificateMode"), ex.Message);
1078Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "SslProtocols"), ex.Message);
1087Assert.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 (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Shared.Tests (53)
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 (17)
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);
698Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, 10), exception.Message);
716Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, 10), exception.Message);
767Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message);
907Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message);
941Assert.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 (33)
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 (39)
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);
Internal\TypedClientBuilderTests.cs (10)
136Assert.Equal("Type must be an interface.", ex.Message);
144Assert.Equal("Type must be an interface.", ex.Message);
152Assert.Equal("Type must be an interface.", ex.Message);
160Assert.Equal($"Cannot generate proxy implementation for '{typeof(IVoidMethodClient).FullName}.{nameof(IVoidMethodClient.Method)}'. All client proxy methods must return '{typeof(Task).FullName}' or '{typeof(Task).FullName}<T>'.", ex.Message);
168Assert.Equal($"Cannot generate proxy implementation for '{typeof(IStringMethodClient).FullName}.{nameof(IStringMethodClient.Method)}'. All client proxy methods must return '{typeof(Task).FullName}' or '{typeof(Task).FullName}<T>'.", ex.Message);
177$"Cannot generate proxy implementation for '{typeof(IOutParamMethodClient).FullName}.{nameof(IOutParamMethodClient.Method)}'. Client proxy methods must not have 'out' parameters.", ex.Message);
186$"Cannot generate proxy implementation for '{typeof(IRefParamMethodClient).FullName}.{nameof(IRefParamMethodClient.Method)}'. Client proxy methods must not have 'ref' parameters.", ex.Message);
194Assert.Equal("Type must not contain properties.", ex.Message);
202Assert.Equal("Type must not contain events.", ex.Message);
239Assert.Equal("InvokeAsync only works with Single clients.", ex.Message);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.TestHost.Tests (15)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.AspNetCore.Tests (13)
WebApplicationTests.cs (13)
1623Assert.Contains("UseRouting", ex.Message);
1839Assert.Equal("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex.Message);
1840Assert.Equal("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex1.Message);
1841Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex2.Message);
1842Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex3.Message);
1843Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex4.Message);
1850Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex5.Message);
1851Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex6.Message);
1852Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex7.Message);
1853Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex8.Message);
2062Assert.Equal("BOOM Filter", ex.Message);
2093Assert.Equal("BOOM", ex.Message);
2612ex.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 (106)
Evaluation\Evaluator.cs (5)
351ex.Message);
1824ProjectErrorUtilities.ThrowInvalidProject(importElement.SdkLocation, "SDKResolverCriticalFailure", e.Message);
2083ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.UnescapeAll(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message);
2128ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", importFileUnescaped, XMakeAttributes.project, XMakeElements.import, ex.Message);
2346importFileUnescaped, ex.InnerException.Message);
Evaluation\Expander.cs (16)
1082ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotExpandItemMetadata", expression, ex.Message);
1814ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidRegistryPropertyExpression", $"$({registryExpression})", ex.Message);
2564ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2619ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2705ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2780ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2822ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3174ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3209ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3242ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3278ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3335ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", match.Name, ex.Message);
4092ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
4163ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
4174ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
4180ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message);
Instance\TaskFactories\AssemblyTaskFactory.cs (4)
293targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, exception.Message);
306ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message);
492targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, exception.Message);
512ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (8)
Microsoft.Build.Engine.UnitTests (39)
Microsoft.Build.Framework (15)
Microsoft.Build.Framework.UnitTests (3)
Microsoft.Build.Tasks.CodeAnalysis (13)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (13)
Microsoft.Build.Tasks.Core (129)
AssemblyDependency\ReferenceTable.cs (8)
512reference.AddError(new DependencyResolutionException(e.Message, e));
696reference.AddError(new BadImageReferenceException(e.Message, e));
918throw new InvalidParameterValueException("AssemblyFiles", referenceAssemblyFile.ItemSpec, e.Message);
1010_log?.LogErrorFromResources("ResolveAssemblyReference.ProblemFindingSatelliteAssemblies", reference.FullPath, e.Message);
1220reference.AddError(new DependencyResolutionException(e.Message, e));
1224reference.AddError(new DependencyResolutionException(e.Message, e));
1785reference.AddError(new DependencyResolutionException(e.Message, e));
2929_log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemReadingImplementationDll", dllPath, e.Message);
AssemblyDependency\ResolveAssemblyReference.cs (11)
1547throw new InvalidParameterValueException("CandidateAssemblyFiles", file, e.Message);
1749message = Log.FormatResourceString("ResolveAssemblyReference.FailedToResolveReference", itemError.Message);
1755message = Log.FormatResourceString("ResolveAssemblyReference.FailedToFindDependentFiles", itemError.Message);
1761message = Log.FormatResourceString("ResolveAssemblyReference.FailedWithException", itemError.Message);
2345Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblyTablesFile", filename, RedistList.RedistListFolder, e.Message);
2355Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblySubsetTablesFile", filename, SubsetListFinder.SubsetListFolder, e.Message);
2417Log.LogErrorWithCodeFromResources(null, e.FileName, e.Line, e.Column, 0, 0, "ResolveAssemblyReference.InvalidAppConfig", AppConfigFile, e.Message);
2504Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2540Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2716"ResolveAssemblyReference.InvalidParameter", e.ParamName, e.ActualValue, e.Message);
2863Log.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)
981Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message);
986Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message);
1070destinationFileState.Path.OriginalValue, retries, RetryDelayMilliseconds, e.Message,
Delete.cs (3)
160Log.LogWarningWithCodeFromResources("Delete.Retrying", filePath?.OriginalValue ?? file.ItemSpec, retries, RetryDelayMilliseconds, e.Message, lockedFileMessage);
169Log.LogWarningWithCodeFromResources("Delete.Error", filePath?.OriginalValue ?? file.ItemSpec, e.Message, lockedFileMessage);
173Log.LogErrorWithCodeFromResources("Delete.Error", filePath?.OriginalValue ?? file.ItemSpec, e.Message, lockedFileMessage);
FileIO\WriteLinesToFile.cs (6)
150Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, e.Message, lockedFileMessage);
178Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, e.Message, lockedFileMessage);
222Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, moveEx.Message, lockedFileMessage);
254Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, fallbackEx.Message, lockedFileMessage);
262Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, e.Message, lockedFileMessage);
302Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, 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);
3531logger.LogErrorWithCodeFromResources("GenerateResource.STRCodeDomProviderFailed", stronglyTypedLanguage, e.Message);
Touch.cs (5)
87Log.LogErrorWithCodeFromResources("Touch.TimeSyntaxIncorrect", e.Message);
193Log.LogErrorWithCodeFromResources("Touch.CannotCreateFile", file.OriginalValue, e.Message);
266Log.LogErrorWithCodeFromResources("Touch.CannotMakeFileWritable", file.OriginalValue, e.Message, lockedFileMessage);
282Log.LogErrorWithCodeFromResources("Touch.CannotTouch", file.OriginalValue, e.Message, lockedFileMessage);
297Log.LogErrorWithCodeFromResources("Touch.CannotRestoreAttributes", file.OriginalValue, e.Message);
Unzip.cs (5)
99Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", DestinationFolder.ItemSpec, e.Message);
159Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotOpenFile", sourceFile.ItemSpec, e.Message);
228Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", destinationPath.DirectoryName, e.Message);
241Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage);
291Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message);
WriteCodeFragment.cs (4)
137Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotWriteOutput", itemSpec, ex.Message, lockedFileMessage);
172Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotCreateProvider", Language, e.Message);
571Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotConvertValue", rawValue, typeName, ex.Message);
601Log.LogMessageFromResources("WriteCodeFragment.CouldNotConvertToInferredType", parameterName, inferredType.Name, ex.Message);
Microsoft.Build.Tasks.UnitTests (9)
Microsoft.Build.UnitTests.Shared (4)
Microsoft.Build.Utilities.Core (18)
ToolLocationHelper.cs (6)
868ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Encountered exception trying to get the SDK props file Location : {0}", e.Message);
1065ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Encountered exception trying to gather the platform references: {0}", e.Message);
1185ErrorUtilities.DebugTraceMessage("GetValueUsingMatchingSDKManifest", "Encountered exception trying to check if SDK is versioned: {0}", e.Message);
3081ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Encountered exception trying to gather platform-specific data: {0}", e.Message);
3176ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message);
3224ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.CouldNotCreateChain", path, pathToReturn, e.Message);
Microsoft.Build.Utilities.UnitTests (5)
Microsoft.CodeAnalysis (63)
Compilation\Compilation.cs (10)
2036diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2041diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2062diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2117diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, NoLocation.Singleton, ex.Message));
3335diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, ex.Message));
3345diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_CantReadResource, Location.None, e.Message, e.InnerException?.Message ?? ""));
3350diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
3571diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, e.Message));
3581diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
Microsoft.CodeAnalysis.Analyzers (12)
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
Microsoft.CodeAnalysis.BannedApiAnalyzers (12)
Microsoft.CodeAnalysis.CodeStyle (13)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
Microsoft.CodeAnalysis.Collections.Package (2)
Microsoft.CodeAnalysis.Contracts.Package (2)
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.Scripting.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.Debugging.Package (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.Features (18)
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)
165e.Message);
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (11)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (12)
Microsoft.CodeAnalysis.PooledObjects.Package (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (13)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Remote.Workspaces (7)
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
Microsoft.CodeAnalysis.Scripting (4)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (5)
Microsoft.CodeAnalysis.Threading.Package (2)
Microsoft.CodeAnalysis.UnitTests (16)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (20)
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\MSBuildWorkspace.cs (6)
360Reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
377Reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
507Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, id));
535Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
539Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
543Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (14)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
Microsoft.CommonLanguageServerProtocol.Framework.Example (2)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Arcade.Sdk (4)
Microsoft.DotNet.ArcadeAzureIntegration (1)
Microsoft.DotNet.Baselines.Tasks (2)
Microsoft.DotNet.Build.Tasks.Feed (6)
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 (6)
Microsoft.DotNet.SignCheckTask (1)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.VersionTools.Cli (2)
Microsoft.DotNet.XUnitAssert.Tests (528)
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
156e.Message);
Microsoft.Extensions.AI (6)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.OllamaSharp.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI.Tests (8)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (25)
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.DataIngestion (1)
Microsoft.Extensions.DataIngestion.Tests (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 (4)
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.Extensions.Validation (2)
Microsoft.Extensions.Validation.Tests (2)
Microsoft.Gen.Logging.Generated.Tests (8)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.JSInterop (1)
Microsoft.JSInterop.Tests (8)
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.McpServer.ProjectTemplates.Tests (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.Extensibility.Testing.Xunit (2)
Microsoft.VisualStudio.LanguageServices (13)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (2)
MiddlewareAnalysisSample (1)
MSBuild (37)
XMake.cs (27)
951Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ConfigurationFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
969Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
975Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixWithErrorCode", e.Message));
994Console.WriteLine($"MSBUILD : error {e.ErrorCode}: {e.Message}");
1007$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : "")}");
1020Console.WriteLine($"MSBUILD : error {pce?.ErrorCode ?? exppce?.ErrorCode}: {e.Message}");
1041$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}");
1049$"{e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}");
2733CommunicationsUtilities.Trace("Invalid node packet version value '{0}': {1}", parameters[parameters.Length - 1], ex.Message);
2738CommunicationsUtilities.Trace("Node packet version value '{0}' out of range: {1}", parameters[parameters.Length - 1], ex.Message);
2768CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
2795CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
2814CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
2877CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
2926ex.Message);
2931ex.Message);
3074CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3078CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3706throw new LoggerException(e.Message, e);
3988InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]);
3996InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]);
4004InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]);
4012Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OptionalLoggerCreationMessage", loggerDescription.Name, e.Message));
4086var message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidLogFileFormat", ex.Message);
MSBuildTaskHost (3)
Pipelines.AppHost (1)
PresentationBuildTasks (15)
PresentationCore (4)
PresentationFramework (24)
PresentationUI (2)
ReachFramework (8)
Replay (9)
RepoTasks (14)
Roslyn.Compilers.Extension (1)
Roslyn.Diagnostics.Analyzers (12)
Roslyn.Test.PdbUtilities (2)
Roslyn.VisualStudio.Next.UnitTests (4)
RulesetToEditorconfigConverter (1)
RunTests (6)
ScenarioTests.Common.Tests (1)
Security.TransportSecurity.IntegrationTests (7)
SemanticSearch.BuildTask (4)
Shared (1)
Shared.Tests (79)
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.DirectoryServices.Protocols (1)
System.Drawing.Primitives (1)
System.Formats.Asn1 (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 (1)
System.Net.NameResolution (2)
System.Net.Primitives (1)
System.Net.Requests (8)
System.Net.Security (4)
System.Net.Sockets (10)
System.Net.WebSockets (5)
System.Private.CoreLib (32)
System.Private.DataContractSerialization (9)
System.Private.Windows.Core (13)
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)
1276SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception);
1477SendValidationEvent(SR.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName!, _context.Namespace!), stringValue, GetTypeName(decl), exception.Message }, exception);
1648SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception);
1859SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning);
1961SendValidationEvent(SR.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), stringValue, GetTypeName(decl), exception.Message }, exception);
1976SendValidationEvent(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.Http (13)
System.ServiceModel.NetFramingBase (16)
System.ServiceModel.NetNamedPipe (5)
System.ServiceModel.Primitives (36)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
296SRP.Format(SRP.SFxInvalidMessageBodyErrorSerializingParameter, part.Description.Namespace, part.Description.Name, sx.Message), sx));
538part.Description.Namespace, part.Description.Name, e.Message),
546part.Description.Namespace, part.Description.Name, e.Message),
System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
156SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operationName, fe.Message), fe));
161SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operationName, se.Message), se));
225SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operationName, fe.Message),
231SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operationName, se.Message),
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
511SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operation.Name, fe.Message), fe));
516SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operation.Name, se.Message), se));
562SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operation.Name, fe.Message),
568SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operation.Name, se.Message),
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.Windows.Forms (43)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Design (35)
System.Windows.Forms.Design.Tests (6)
System.Windows.Forms.Primitives.TestUtilities (3)
System.Windows.Forms.Tests (2)
System.Windows.Forms.UI.IntegrationTests (2)
System.Xaml (6)
TaskUsageLogger (1)
Templates.Blazor.Tests (17)
Templates.Blazor.WebAssembly.Auth.Tests (18)
Templates.Blazor.WebAssembly.Tests (18)
Templates.Mvc.Tests (18)
Templates.Tests (18)
Test.Utilities (12)
TestDiscoveryWorker (1)
Text.Analyzers (13)
UIAutomationClientSideProviders (3)
UnitTests.Common (1)
vbc (6)
VBCSCompiler (8)
WindowsBase.Tests (14)
WinFormsControlsTest (3)
XmlFormattersWebSite (1)
xunit.assert (5)
xunit.console (2)