33 overrides of Message
dotnet-svcutil-lib (5)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.Extensions.Options (1)
PresentationFramework (1)
System.ComponentModel.Composition (1)
System.Configuration.ConfigurationManager (1)
System.Diagnostics.EventLog (1)
System.DirectoryServices (1)
System.Net.Http (1)
System.Net.Primitives (1)
System.Private.CoreLib (10)
System.Private.Xml (4)
System.ServiceModel.Primitives (1)
System.Text.Json (1)
System.Xaml (1)
3992 references to Message
aspire (29)
Commands\ExecCommand.cs (6)
241catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
246catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
251catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
265_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
270_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
276_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\PublishCommandBase.cs (6)
192catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileNotAppHostProject, StringComparisons.CliInputOrOutput))
197catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
202catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
207catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
221_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
227_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\RunCommand.cs (6)
253catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.ProjectFileDoesntExist, StringComparisons.CliInputOrOutput))
258catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.MultipleProjectFilesFound, StringComparisons.CliInputOrOutput))
263catch (ProjectLocatorException ex) when (string.Equals(ex.Message, ErrorStrings.NoProjectFileFound, StringComparisons.CliInputOrOutput))
277_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message.EscapeMarkup()));
282_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
288_interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Aspire.Azure.AI.OpenAI.Tests (4)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.Cli.Tests (3)
Aspire.Dashboard (5)
Aspire.Dashboard.Tests (5)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (10)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.AIFoundry (2)
Aspire.Hosting.Azure.Tests (13)
AzureContainerAppsTests.cs (8)
745Assert.Equal("Automatic Key vault generation is not supported in this environment. Please create a key vault resource directly.", ex.Message);
1061Assert.Equal("The endpoint(s) 'foo' specify an unsupported scheme. The supported schemes are 'http', 'https', and 'tcp'.", ex.Message);
1082Assert.Equal("Multiple external endpoints are not supported", ex.Message);
1101Assert.Equal("External non-HTTP(s) endpoints are not supported", ex.Message);
1121Assert.Equal("HTTP(s) and TCP endpoints cannot be mixed", ex.Message);
1140Assert.Equal($"The endpoint 'http' is an http endpoint and must use port 80", ex.Message);
1159Assert.Equal($"The endpoint 'https' is an https endpoint and must use port 443", ex.Message);
1526Assert.Contains("there are no 'AzureContainerAppEnvironmentResource' resources", ex.Message);
Aspire.Hosting.Containers.Tests (4)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Kubernetes.Tests (1)
Aspire.Hosting.Testing.Tests (4)
Aspire.Hosting.Tests (55)
Publishing\PublishingActivityReporterTests.cs (11)
100Assert.Contains("Step with ID 'non-existent-step' does not exist", exception.Message);
118Assert.Contains($"Cannot create task for step '{stepInternal.Id}' because the step is already complete.", exception.Message);
204Assert.Contains("Parent step with ID 'non-existent-step' does not exist", exception.Message);
222Assert.Contains($"Cannot update task '{taskInternal.Id}' because its parent step", exception.Message);
276Assert.Contains($"Cannot complete task '{taskInternal.Id}' because its parent step", exception.Message);
394Assert.Contains($"Cannot complete task '{taskInternal.Id}' with state 'Completed'. Only 'InProgress' tasks can be completed.", exception.Message);
413Assert.Contains($"Cannot complete step '{stepInternal.Id}' with state 'Completed'. Only 'InProgress' steps can be completed.", exception.Message);
436Assert.Contains($"Cannot update task '{taskInternal.Id}' because its parent step", updateException.Message);
441Assert.Contains($"Cannot complete task '{taskInternal.Id}' with state 'Completed'. Only 'InProgress' tasks can be completed.", completeException.Message);
447Assert.Contains($"Cannot create task for step '{stepInternal.Id}' because the step is already complete.", createException.Message);
463Assert.Equal("Cannot prompt interaction while steps are in progress.", exception.Message);
WithEndpointTests.cs (4)
167Assert.Equal("Endpoint with name 'mybinding' already exists. Endpoint name may not have been explicitly specified and was derived automatically from scheme argument (e.g. 'http', 'https', or 'tcp'). Multiple calls to WithEndpoint (and related methods) may result in a conflict if name argument is not specified. Each endpoint must have a unique name. For more information on networking in .NET Aspire see: https://aka.ms/dotnet/aspire/networking", ex.Message);
182Assert.Equal("Endpoint with name 'https' already exists. Endpoint name may not have been explicitly specified and was derived automatically from scheme argument (e.g. 'http', 'https', or 'tcp'). Multiple calls to WithEndpoint (and related methods) may result in a conflict if name argument is not specified. Each endpoint must have a unique name. For more information on networking in .NET Aspire see: https://aka.ms/dotnet/aspire/networking", ex.Message);
196Assert.Equal("Endpoint with name 'mybinding' already exists. Endpoint name may not have been explicitly specified and was derived automatically from scheme argument (e.g. 'http', 'https', or 'tcp'). Multiple calls to WithEndpoint (and related methods) may result in a conflict if name argument is not specified. Each endpoint must have a unique name. For more information on networking in .NET Aspire see: https://aka.ms/dotnet/aspire/networking", ex.Message);
240Assert.Equal("The endpoint \"ep\" has no associated container host name.", ex.Message);
Aspire.Keycloak.Authentication.Tests (4)
Aspire.Microsoft.Azure.Cosmos.Tests (5)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (4)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.OpenAI.Tests (5)
Aspire.Oracle.EntityFrameworkCore.Tests (4)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (4)
Aspire.RabbitMQ.Client (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v7.Tests (1)
Aspire.Templates.Tests (5)
BasicTestApp (2)
BasicWebSite (1)
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));
223Assert.True(exception.Message.Contains(protocolExceptionUri), string.Format("Expected exception message to contain: '{0}'\nThe exception was: '{1}'", protocolExceptionUri, exception.Message));
411Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
459Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
ClientSample (2)
CodeStyleConfigFileGenerator (2)
Contract.XmlSerializer.IntegrationTests (10)
Crossgen2Tasks (1)
csc (4)
DemoConsole (1)
Diagnostics.EFCore.FunctionalTests (4)
dotnet-dev-certs (14)
dotnet-getdocument (1)
dotnet-openapi (2)
dotnet-sql-cache (4)
dotnet-svcutil.xmlserializer (8)
dotnet-svcutil.xmlserializer.IntegrationTests (10)
dotnet-svcutil-lib (122)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (2)
553throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
571throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
370throw new XmlSchemaException(ResXml.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet);
676throw new XmlSchemaException(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (4)
571SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { "version", schema.Version, tokenDt.TypeCodeString, exception.Message }, exception, schema);
2028SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, particle);
2071SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, anyAttribute);
2145SendValidationEvent(ResXml.Sch_InvalidAttribute, new string[] { attributeName, fx.Message }, fx, xso);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (6)
1307SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception);
1505SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception);
1667SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception);
1882SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning);
1986SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), stringValue, GetTypeName(decl), exception.Message }, exception);
2001SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
240string.Format(SRServiceModel.SFxInvalidMessageBodyErrorSerializingParameter, part.Description.Namespace, part.Description.Name, sx.Message), sx));
436part.Description.Namespace, part.Description.Name, e.Message),
444part.Description.Namespace, part.Description.Name, e.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
149string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, fe.Message), fe));
154string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, se.Message), se));
214string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, fe.Message),
220string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, se.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
400string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, fe.Message), fe));
405string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, se.Message), se));
442string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, fe.Message),
448string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, se.Message),
dotnet-svcutil-lib.Tests (2)
dotnet-user-jwts (3)
dotnet-user-secrets (3)
EventHubsConsumer (1)
ExceptionHandlerSample (1)
GenerateDocumentationAndConfigFiles (16)
GenerateRulesMissingDocumentation (1)
GetDocument.Insider (1)
HttpStress (2)
IdentitySample.PasskeyConformance (2)
IIS.FunctionalTests (3)
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IIS.ShadowCopy.Tests (3)
IIS.Tests (7)
IISExpress.FunctionalTests (5)
illink (2)
Infrastructure.Common (2)
InMemory.FunctionalTests (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.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 (16)
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 (79)
RendererTest.cs (10)
664Assert.Contains("declares more than one parameter", ex.Message);
687Assert.Contains($"must inherit from {typeof(EventArgs).FullName}", ex.Message);
720Assert.Equal("Error", exception.Message);
2925Assert.Equal("The render handle is not yet assigned.", ex.Message);
4432Assert.Contains("Cannot start a batch when one is already in progress.", ex.Message);
4465Assert.Equal($"The {nameof(ParameterView)} instance can no longer be read because it has expired. {nameof(ParameterView)} can only be read synchronously and must not be stored for later use.", ex.Message);
4538Assert.StartsWith($"Render output is invalid for component of type '{typeof(TestComponent).FullName}'. A frame of type 'Element' was left unclosed.", ex.Message);
4885Assert.Equal("The specified component is not a root component", ex.Message);
5044Assert.Contains($"Cannot supply a component of type '{typeof(ComponentWithUnknownRenderMode)}' because the current platform does not support the render mode '{typeof(ComponentWithUnknownRenderMode.UnknownRenderMode)}'.", ex.Message);
5062Assert.Contains($"Cannot supply a component of type '{typeof(TestComponent)}' because the current platform does not support the render mode '{typeof(ComponentWithUnknownRenderMode.UnknownRenderMode)}'.", ex.Message);
Routing\TemplateParserTests.cs (10)
132Assert.Equal(expectedMessage, ex.Message);
150Assert.Equal(expectedMessage, ex.Message);
165Assert.Equal(expectedMessage, ex.Message);
175Assert.Equal(expectedMessage, ex.Message);
185Assert.Equal(expectedMessage, ex.Message);
195Assert.Equal(expectedMessage, ex.Message);
205Assert.Equal(expectedMessage, ex.Message);
218Assert.Equal(expectedMessage, ex.Message);
228Assert.Equal(expectedMessage, ex.Message);
238Assert.Equal(expectedMessage, ex.Message);
Microsoft.AspNetCore.Components.Web.Tests (22)
Microsoft.AspNetCore.Components.WebAssembly (6)
Microsoft.AspNetCore.Components.WebAssembly.Tests (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 (19)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (13)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (8)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Microsoft.AspNetCore.Diagnostics.Tests (10)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (25)
JsonTranscodingServiceMethodProviderTests.cs (17)
98Assert.Equal("Couldn't find gRPC endpoint for method NoOption.", ex.Message);
169Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidResponseBodyGreeterService'.", ex.Message);
170Assert.Equal("Error binding BadResponseBody on JsonTranscodingInvalidResponseBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
171Assert.Equal("Couldn't find matching field for response body 'NoMatch' on HelloReply.", ex.InnerException!.InnerException!.InnerException!.Message);
181Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidNestedResponseBodyGreeterService'.", ex.Message);
182Assert.Equal("Error binding BadResponseBody on JsonTranscodingInvalidNestedResponseBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
183Assert.Equal("The response body field 'sub.subfield' references a nested field. The response body field name must be on the top-level response message.", ex.InnerException!.InnerException!.InnerException!.Message);
193Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidBodyGreeterService'.", ex.Message);
194Assert.Equal("Error binding BadBody on JsonTranscodingInvalidBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
195Assert.Equal("Couldn't find matching field for body 'NoMatch' on HelloRequest.", ex.InnerException!.InnerException!.InnerException!.Message);
205Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidNestedBodyGreeterService'.", ex.Message);
206Assert.Equal("Error binding BadBody on JsonTranscodingInvalidNestedBodyGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
207Assert.Equal("The body field 'sub.subfield' references a nested field. The body field name must be on the top-level request message.", ex.InnerException!.InnerException!.InnerException!.Message);
217Assert.Equal("Error binding gRPC service 'JsonTranscodingInvalidPatternGreeterService'.", ex.Message);
218Assert.Equal("Error binding BadPattern on JsonTranscodingInvalidPatternGreeterService to HTTP API.", ex.InnerException!.InnerException!.Message);
219Assert.Equal("Error parsing path template 'v1/greeter/{name}'.", ex.InnerException!.InnerException!.InnerException!.Message);
220Assert.Equal("Path template must start with a '/'.", ex.InnerException!.InnerException!.InnerException!.InnerException!.Message);
Microsoft.AspNetCore.HeaderPropagation.Tests (3)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Hosting.Tests (24)
WebHostBuilderTests.cs (15)
78Assert.Equal("The specified factory returned null startup instance.", ex.Message);
425Assert.Equal("A public method named 'ConfigureProduction' or 'Configure' could not be found in the 'Microsoft.AspNetCore.Hosting.Fakes.StartupBoom' type.", exception.Message);
455Assert.Equal("A public method named 'ConfigureProduction' or 'Configure' could not be found in the 'Microsoft.AspNetCore.Hosting.Fakes.StartupBoom' type.", exception.Message);
720Assert.Contains("No application configured.", ex.Message);
842Assert.Equal("WebHostBuilder allows creation only of a single instance of WebHost", ex.Message);
1006Assert.Equal("Microsoft.AspNetCore.Hosting.IStartup isn't supported", exception.Message);
1022Assert.Equal("Building this implementation of IWebHostBuilder is not supported.", exception.Message);
1038Assert.Equal($"ConfigureServices returning an {typeof(IServiceProvider)} isn't supported.", exception.Message);
1230Assert.Contains(sink.Writes, w => w.Exception?.Message == "Startup exception");
1254Assert.Contains(testSink.Writes, w => w.Exception?.Message == "Startup exception");
1313Assert.Contains("No application configured.", exception.Message);
1355Assert.Equal("Hosted Service throws in StartAsync", startEx.Message);
1361Assert.Equal("Hosted Service throws in StopAsync", stopEx.Message);
1380Assert.Equal("Hosted Service throws in StartAsync", startEx.Message);
1387Assert.Equal("Hosted Service throws in StopAsync", stopEx.Message);
Microsoft.AspNetCore.Http.Abstractions.Tests (17)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (6)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (62)
ParameterBindingMethodCacheTests.cs (14)
558Assert.StartsWith($"TryParse method found on {TypeNameHelper.GetTypeDisplayName(type, fullName: false)} with incorrect format. Must be a static method with format", ex.Message);
559Assert.Contains($"bool TryParse(string, IFormatProvider, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})", ex.Message);
560Assert.Contains($"bool TryParse(string, out {TypeNameHelper.GetTypeDisplayName(type, fullName: false)})", ex.Message);
575Assert.Equal("TryParseFromMultipleInterfaces implements multiple interfaces defining a static Boolean TryParse(System.String, TryParseFromMultipleInterfaces ByRef) method causing ambiguity.", ex.Message);
620Assert.StartsWith($"BindAsync method found on {TypeNameHelper.GetTypeDisplayName(type, fullName: false)} with incorrect format. Must be a static method with format", ex.Message);
621Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}> BindAsync(HttpContext context, ParameterInfo parameter)", ex.Message);
622Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}> BindAsync(HttpContext context)", ex.Message);
623Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}?> BindAsync(HttpContext context, ParameterInfo parameter)", ex.Message);
624Assert.Contains($"ValueTask<{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}?> BindAsync(HttpContext context)", ex.Message);
643Assert.Equal("BindAsyncFromMultipleInterfaces implements multiple interfaces defining a static System.Threading.Tasks.ValueTask`1[Microsoft.AspNetCore.Http.Extensions.Tests.ParameterBindingMethodCacheTests+BindAsyncFromMultipleInterfaces] BindAsync(Microsoft.AspNetCore.Http.HttpContext) method causing ambiguity.", ex.Message);
684Assert.Equal($"No public parameterless constructor found for type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}'.", ex.Message);
694Assert.Equal($"The abstract type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}' is not supported.", ex.Message);
704Assert.Equal($"Only a single public parameterized constructor is allowed for type '{TypeNameHelper.GetTypeDisplayName(type, fullName: false)}'.", ex.Message);
718ex.Message);
RequestDelegateFactoryTests.cs (18)
293Assert.Equal("'id' is not a route parameter.", ex.Message);
730Assert.Equal("notTryParsable must have a valid TryParse method to support converting from a string. No public static bool object.TryParse(string, out object) method found for notTryParsable.", ex.Message);
739Assert.Equal("Encountered a parameter of type 'System.Runtime.CompilerServices.Closure' without a name. Parameters must have a name.", ex.Message);
773Assert.Equal(@"Failed to bind parameter ""Nullable<int>[] values"" from """".", badHttpRequestException.Message);
910Assert.Equal("Unsupported return type: System.ReadOnlySpan<byte>", ex1.Message);
911Assert.Equal("Unsupported return type: System.Span<byte>", ex2.Message);
912Assert.Equal($"Unsupported return type: {typeof(RefStruct).FullName}", ex3.Message);
1022Assert.Equal(errorMessage, exception.Message);
1128Assert.Equal($"The by reference parameter 'out {typeName} foo' is not supported.", outParamException.Message);
1129Assert.Equal($"The by reference parameter 'in {typeName} foo' is not supported.", inParamException.Message);
1130Assert.Equal($"The by reference parameter 'ref {typeName} foo' is not supported.", refParamException.Message);
1163Assert.Equal("No service for type 'Microsoft.AspNetCore.Routing.Internal.RequestDelegateFactoryTests+MyService' has been registered.", ex.Message);
1521Assert.Contains(message, exception.Message);
2028Assert.Equal("Assigning a value to the IFromFormMetadata.Name property is not supported for parameters of type IFormFileCollection.", nse.Message);
2077Assert.Equal("Assigning a value to the IFromFormMetadata.Name property is not supported for parameters of type IFormCollection.", nse.Message);
2114Assert.Contains($"The nullable type '{TypeNameHelper.GetTypeDisplayName(parameter.ParameterType, fullName: false)}' is not supported, mark the parameter as non-nullable.", exception.Message);
3282Assert.Contains("Microsoft.AspNetCore.Routing.Internal.RequestDelegateFactoryTests+Todo", exception.Message);
3283Assert.Contains("JsonSerializableAttribute", exception.Message);
Microsoft.AspNetCore.Http.Results.Tests (6)
Microsoft.AspNetCore.Http.Tests (8)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.HttpOverrides.Tests (1)
Microsoft.AspNetCore.HttpsPolicy.Tests (1)
Microsoft.AspNetCore.Identity (5)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
Microsoft.AspNetCore.Identity.Specification.Tests (4)
Microsoft.AspNetCore.Identity.Test (161)
Passkeys\DefaultPasskeyHandlerAssertionTest.cs (72)
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 original passkey request options had an invalid format", result.Failure.Message);
181Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
197Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message);
198Assert.Contains("base64url string", result.Failure.Message);
216Assert.StartsWith("The original passkey request options had an invalid format", result.Failure.Message);
232Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
233Assert.Contains("was missing required properties including: 'clientDataJSON'", result.Failure.Message);
251Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
266Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
282Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
283Assert.Contains("was missing required properties including: 'authenticatorData'", result.Failure.Message);
301Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
317Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
318Assert.Contains("base64url string", result.Failure.Message);
333Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message);
349Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
350Assert.Contains("was missing required properties including: 'signature'", result.Failure.Message);
368Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
384Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
385Assert.Contains("base64url string", result.Failure.Message);
400Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
417Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
434Assert.StartsWith("The assertion credential JSON had an invalid format", result.Failure.Message);
449Assert.StartsWith("The authenticator response was missing a user handle", result.Failure.Message);
468Assert.StartsWith("The provided user handle", result.Failure.Message);
483Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
484Assert.Contains("was missing required properties including: 'type'", result.Failure.Message);
502Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
520Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.get'", result.Failure.Message);
535Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
536Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
554Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
569Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
585Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
586Assert.Contains("base64url string", result.Failure.Message);
607Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
622Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
623Assert.Contains("was missing required properties including: 'origin'", result.Failure.Message);
641Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
656Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message);
678Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message);
695Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
710Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
711Assert.Contains("was missing required properties including: 'status'", result.Failure.Message);
730Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message);
783result.Failure.Message);
798Assert.StartsWith("The authenticator data flags did not include the 'UserPresent' flag", result.Failure.Message);
828Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
845Assert.StartsWith("The authenticator data included an invalid Relying Party ID hash", result.Failure.Message);
862Assert.StartsWith("The assertion signature was invalid", result.Failure.Message);
905result.Failure.Message);
948Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message);
993result.Failure.Message);
1016result.Failure.Message);
1063result.Failure.Message);
1086result.Failure.Message);
1104result.Failure.Message);
1122result.Failure.Message);
1138result.Failure.Message);
1169Assert.StartsWith("The provided credential does not belong to the specified user", result.Failure.Message);
Passkeys\DefaultPasskeyHandlerAttestationTest.cs (82)
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 original passkey creation options had an invalid format", result.Failure.Message);
181Assert.Contains("was missing required properties including: 'name'", result.Failure.Message);
199Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
214Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
215Assert.Contains("was missing required properties including: 'rp'", result.Failure.Message);
231Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
232Assert.Contains("was missing required properties including: 'id'", result.Failure.Message);
248Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
249Assert.Contains("base64url string", result.Failure.Message);
267Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
283Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
284Assert.Contains("was missing required properties including: 'name'", result.Failure.Message);
302Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
318Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
319Assert.Contains("was missing required properties including: 'displayName'", result.Failure.Message);
337Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
352Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
353Assert.Contains("was missing required properties including: 'user'", result.Failure.Message);
369Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
370Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
387Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
388Assert.Contains("base64url string", result.Failure.Message);
406Assert.StartsWith("The original passkey creation options had an invalid format", result.Failure.Message);
422Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
423Assert.Contains("was missing required properties including: 'clientDataJSON'", result.Failure.Message);
441Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
456Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
472Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
473Assert.Contains("was missing required properties including: 'attestationObject'", result.Failure.Message);
491Assert.StartsWith("The attestation credential JSON had an invalid format", result.Failure.Message);
506Assert.StartsWith("The attestation object had an invalid format", result.Failure.Message);
521Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
522Assert.Contains("was missing required properties including: 'type'", result.Failure.Message);
540Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
558Assert.StartsWith("Expected the client data JSON 'type' field to be 'webauthn.create'", result.Failure.Message);
573Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
574Assert.Contains("was missing required properties including: 'challenge'", result.Failure.Message);
592Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
607Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
623Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
624Assert.Contains("base64url string", result.Failure.Message);
645Assert.StartsWith("The authenticator response challenge does not match original challenge", result.Failure.Message);
660Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
661Assert.Contains("was missing required properties including: 'origin'", result.Failure.Message);
679Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
694Assert.StartsWith("The authenticator response had an invalid origin ''", result.Failure.Message);
716Assert.StartsWith($"The authenticator response had an invalid origin '{returnedOrigin}'", result.Failure.Message);
733Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
748Assert.StartsWith("The client data JSON had an invalid format", result.Failure.Message);
749Assert.Contains("was missing required properties including: 'status'", result.Failure.Message);
768Assert.StartsWith("Invalid token binding status 'unexpected-value'", result.Failure.Message);
798Assert.StartsWith("The credential is backed up, but the authenticator data flags did not have the 'BackupEligible' flag", result.Failure.Message);
832result.Failure.Message);
850result.Failure.Message);
885result.Failure.Message);
903result.Failure.Message);
915Assert.StartsWith("The attestation object had an invalid format", result.Failure.Message);
931Assert.StartsWith("The attestation object did not include an attestation statement format", result.Failure.Message);
947Assert.StartsWith("The attestation object did not include an attestation statement", result.Failure.Message);
963Assert.StartsWith("The attestation object did not include authenticator data", result.Failure.Message);
978Assert.StartsWith("The authenticator data had an invalid byte count of 0", result.Failure.Message);
994Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
1010Assert.StartsWith("The attested credential data had an invalid byte count of 0", result.Failure.Message);
1026Assert.StartsWith("No attested credential data was provided by the authenticator", result.Failure.Message);
1041Assert.StartsWith("The authenticator data had an invalid format", result.Failure.Message);
1095Assert.StartsWith("The credential public key algorithm does not match any of the supported algorithms", result.Failure.Message);
1109Assert.StartsWith("The attestation statement was not valid", result.Failure.Message);
1125Assert.StartsWith("Expected the credential ID to have a length between 1 and 1023 bytes", result.Failure.Message);
1144result.Failure.Message);
1158Assert.StartsWith("The credential is already registered for a user", result.Failure.Message);
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.InternalTesting.Tests (7)
Microsoft.AspNetCore.JsonPatch (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (14)
Microsoft.AspNetCore.JsonPatch.Tests (25)
Microsoft.AspNetCore.Mvc.Abstractions (4)
Microsoft.AspNetCore.Mvc.Abstractions.Test (13)
Microsoft.AspNetCore.Mvc.Core (10)
Microsoft.AspNetCore.Mvc.Core.Test (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 (38)
Internal\Http3\Http3Connection.cs (5)
178session.Value.Abort(new ConnectionAbortedException(ex.Message, ex.InnerException), errorCode);
182session.Value.Abort(new ConnectionAbortedException(ex.Message), errorCode);
454Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId), Http3ErrorCode.StreamCreationError, new(ex.Message));
731Abort(new ConnectionAbortedException(connectionError.Message, connectionError), connectionError.ErrorCode, ConnectionEndReason.ClosedCriticalStream);
864Abort(new ConnectionAbortedException(ex.Message, ex), ex.ErrorCode, ex.Reason);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (87)
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)
83Assert.Equal(CoreStrings.BadRequest_HeadersExceedMaxTotalSize, exception.Message);
100Assert.Equal(CoreStrings.BadRequest_TooManyHeaders, exception.Message);
468Assert.Equal(CoreStrings.BadRequest_RequestLineTooLong, exception.Message);
483Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target), exception.Message);
498Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.EscapeNonPrintable()}"), exception.Message);
515Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(partialRequestLine.EscapeNonPrintable()), exception.Message);
532Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.EscapeNonPrintable()}"), exception.Message);
548Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target.EscapeNonPrintable()), exception.Message);
566Assert.Equal(CoreStrings.BadRequest_MethodNotAllowed, exception.Message);
852Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(string.Empty), exception.Message);
941Assert.Equal(CoreStrings.MaxRequestBodySizeCannotBeModifiedAfterRead, ex.Message);
1009Assert.Equal(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail("a=b"), ex.Message);
1018Assert.Equal(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail("a=b"), ex.Message);
HttpParserTests.cs (14)
96Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(line[..^1].EscapeNonPrintable()), exception.Message);
124Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(requestLine[..^1].EscapeNonPrintable()), exception.Message);
147Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(line.EscapeNonPrintable()), exception.Message);
151Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(method.EscapeNonPrintable() + @" / HTTP/1.1\x0D"), exception.Message);
171Assert.Equal(CoreStrings.FormatBadRequest_UnrecognizedHTTPVersion(httpVersion), exception.Message);
189Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail("GET "), exception.Message);
494Assert.Equal(expectedExceptionMessage, exception.Message);
514Assert.Equal(expectedExceptionMessage, exception.Message);
532Assert.Equal("Invalid request line: ''", exception.Message);
543Assert.Equal(CoreStrings.FormatBadRequest_UnrecognizedHTTPVersion(string.Empty), exception.Message);
557Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestHeader_Detail(string.Empty), exception.Message);
612Assert.Equal(expectedExceptionMessage, exception.Message);
632Assert.Equal(expectedExceptionMessage, exception.Message);
794Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestHeader_Detail(@"ab\x0A"), exception.Message);
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (15)
178Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
254Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
404Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
499Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
622Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
637Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
665Assert.Equal(SR.Format(SR.net_http_hpack_large_table_size_update, 4097, DynamicTableInitialMaxSize), exception.Message);
677Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize), exception.Message);
728Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message);
868Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message);
902Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
Microsoft.AspNetCore.Server.Kestrel.Tests (7)
KestrelConfigurationLoaderTests.cs (6)
682Assert.StartsWith("Error getting private key from", ex.Message);
803Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Certificate"), ex.Message);
812Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Certificate"), ex.Message);
821Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "ClientCertificateMode"), ex.Message);
830Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "SslProtocols"), ex.Message);
839Assert.Equal(CoreStrings.FormatEndpointHasUnusedHttpsConfig("End1", "Sni"), ex.Message);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (13)
Internal\QuicStreamContext.cs (8)
280error = new ConnectionResetException(ex.Message, ex);
290error = new ConnectionResetException(ex.Message, ex);
295error = new ConnectionAbortedException(ex.Message, ex);
441shutdownReason = new ConnectionResetException(ex.Message, ex);
451shutdownReason = new ConnectionResetException(ex.Message, ex);
458shutdownReason = new ConnectionResetException(ex.Message, ex);
505QuicLog.StreamAbort(_log, this, resolvedErrorCode, abortReason.Message);
529QuicLog.StreamShutdownWrite(_log, this, _shutdownReason.Message);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Shared.Tests (35)
CommandLineApplicationTests.cs (14)
72Assert.Contains("three", ex.Message);
113Assert.Contains("test2", ex.Message);
166ex.Message);
205Assert.Contains($"Missing value for option '{first.LongName}'", ex.Message);
262Assert.Equal($"Unrecognized command or argument '{unexpectedArg}'", exception.Message);
434Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
644Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
677Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
712Assert.Equal($"Unrecognized option '{unexpectedOption}'", exception.Message);
1119Assert.Equal("Unexpected value 'File2' for option 'file'", exception.Message);
1145Assert.Equal("Unexpected value 'true' for option 'verbose'", exception.Message);
1156Assert.Equal($"Unrecognized command or argument '{inputOption}'", exception.Message);
1167Assert.Equal($"Unrecognized option '{inputOption}'", exception.Message);
1221Assert.Equal($"Unrecognized option '{firstOption}'", exception.Message);
runtime\Http2\HPackDecoderTest.cs (15)
178Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
254Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
404Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
499Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message);
622Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
637Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message);
665Assert.Equal(SR.Format(SR.net_http_hpack_large_table_size_update, 4097, DynamicTableInitialMaxSize), exception.Message);
677Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize), exception.Message);
728Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message);
868Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message);
902Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (25)
HubConnectionTests.cs (24)
144Assert.Equal("The client requested version '1', but the server does not support this version.", ex.Message);
665Assert.Equal("An unexpected error occurred invoking 'StreamException' on the server. InvalidOperationException: Error occurred while streaming.", ex.Message);
746LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} during test: {Message}", ex.GetType().Name, ex.Message);
1055Assert.Equal("An unexpected error occurred invoking 'StreamException' on the server. InvalidOperationException: Error occurred while streaming.", ex.Message);
1082Assert.Equal("Failed to invoke '!@#$%' due to an error on the server. HubException: Method does not exist.", ex.Message);
1109Assert.Equal("Failed to invoke '!@#$%' due to an error on the server. HubException: Method does not exist.", ex.Message);
1136Assert.Equal("Failed to invoke 'Echo' due to an error on the server. InvalidDataException: Invocation provides 2 argument(s) but target expects 1.", ex.Message);
1163Assert.StartsWith("Failed to invoke 'Echo' due to an error on the server.", ex.Message);
1191Assert.Equal("Failed to invoke '!@#$%' due to an error on the server. HubException: Method does not exist.", ex.Message);
1219Assert.Equal("Failed to invoke 'Stream' due to an error on the server. InvalidDataException: Invocation provides 2 argument(s) but target expects 1.", ex.Message);
1247Assert.Equal("Failed to invoke 'Stream' due to an error on the server. InvalidDataException: Error binding arguments. Make sure that the types of the provided values match the types of the hub method being invoked.", ex.Message);
1274Assert.Equal("The client attempted to invoke the non-streaming 'HelloWorld' method with a streaming invocation.", ex.Message);
1301Assert.Equal("The client attempted to invoke the streaming 'Stream' method with a non-streaming invocation.", ex.Message);
1328Assert.Equal("The value returned by the streaming method 'StreamBroken' is not a ChannelReader<> or IAsyncEnumerable<>.", ex.Message);
1373Assert.Contains("Connection closed with an error.", exception.Message);
1376Assert.Contains("Connection closed with an error.", hubException.Message);
1377Assert.Contains(exceptionSubstring, hubException.Message);
1391Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message);
1427Assert.Contains("Connection closed with an error.", exception.Message);
1430Assert.Contains("Connection closed with an error.", hubException.Message);
1431Assert.Contains(exceptionSubstring, hubException.Message);
1445Assert.Contains(exceptionSubstring, errorLog.Write.Exception.Message);
1465hubException.Message);
1526Assert.Equal("Response status code does not indicate success: 401 (Unauthorized).", ex.Message);
Microsoft.AspNetCore.SignalR.Client.Tests (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 (13)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.AspNetCore.Tests (13)
WebApplicationTests.cs (13)
1621Assert.Contains("UseRouting", ex.Message);
1837Assert.Equal("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex.Message);
1838Assert.Equal("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex1.Message);
1839Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex2.Message);
1840Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex3.Message);
1841Assert.Equal("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex4.Message);
1848Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex5.Message);
1849Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex6.Message);
1850Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex7.Message);
1851Assert.Equal("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.", ex8.Message);
2060Assert.Equal("BOOM Filter", ex.Message);
2091Assert.Equal("BOOM", ex.Message);
2610ex.InnerException.InnerException.Message);
Microsoft.AspNetCore.WebUtilities.Tests (28)
FormPipeReaderTests.cs (13)
85Assert.Equal("The form value contains invalid characters.", exception.Message);
110Assert.Equal("Form value count limit 3 exceeded.", exception.Message);
125Assert.Equal("Form value count limit 3 exceeded.", exception.Message);
153Assert.Equal("Form key length limit 10 exceeded.", exception.Message);
181Assert.Equal("Form value length limit 10 exceeded.", exception.Message);
206Assert.Equal("Form value length limit 10 exceeded.", exception.Message);
234valueLengthLimit), exception.Message);
456Assert.Equal("Form key length limit 2 exceeded.", exception.Message);
470Assert.Equal("Form key length limit 2 exceeded.", exception.Message);
484Assert.Equal("Form value length limit 2 exceeded.", exception.Message);
498Assert.Equal("Form value length limit 2 exceeded.", exception.Message);
512Assert.Equal("Form key length limit 10 exceeded.", exception.Message);
526Assert.Equal("Form value length limit 10 exceeded.", exception.Message);
Microsoft.Build.Framework (8)
Microsoft.Build.Tasks.CodeAnalysis (11)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (11)
Microsoft.CodeAnalysis (63)
Compilation\Compilation.cs (10)
2027diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2032diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2053diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2108diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, NoLocation.Singleton, ex.Message));
3326diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, ex.Message));
3336diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_CantReadResource, Location.None, e.Message, e.InnerException?.Message ?? ""));
3341diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
3499diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, e.Message));
3509diagnostics.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.Features.UnitTests (2)
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 (19)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.InteractiveHost (16)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
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 (1)
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 (17)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (20)
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\MSBuildWorkspace.cs (6)
360_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
377_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
507_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, id));
535_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
539_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
543_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (16)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (9)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.ArcadeAzureIntegration (1)
Microsoft.DotNet.Build.Tasks.Feed (6)
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 (2)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.Tar (1)
Microsoft.DotNet.VersionTools.Cli (2)
Microsoft.DotNet.XUnitAssert.Tests (528)
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
134e.Message);
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.Ollama.Tests (3)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (21)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (10)
92Assert.Contains("/sys/fs/cgroup/memory/memory.stat", r.Message);
93Assert.Contains("total_inactive_file", r.Message);
119Assert.Contains("/sys/fs/cgroup/memory/memory.usage_in_bytes", r.Message);
138Assert.Contains("lesser than", r.Message);
164Assert.Contains("/proc/meminfo", r.Message);
238Assert.Contains("/sys/fs/cgroup/cpuset/cpuset.cpus", r.Message);
259Assert.Contains("/sys/fs/cgroup/cpuset/cpuset.cpus", r.Message);
287Assert.Contains("/sys/fs/cgroup/cpu/cpu.cfs_", r.Message);
337Assert.Contains("proc/stat", r.Message);
354Assert.Contains("/sys/fs/cgroup/cpu/cpu.shares", r.Message);
Microsoft.Extensions.Features.Tests (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (3)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.ServiceDiscovery.Tests (5)
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.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.LanguageServices (13)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
MiddlewareAnalysisSample (1)
PresentationBuildTasks (15)
PresentationCore (4)
PresentationFramework (24)
PresentationUI (2)
ReachFramework (8)
Replay (6)
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 (81)
Throw\IntegerTests.cs (24)
113Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
124Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
135Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
146Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
157Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
168Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
273Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
284Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
295Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
306Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
317Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
328Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
Throw\LongTests.cs (24)
113Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
124Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
135Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
146Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
157Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
168Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
273Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
284Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
295Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
306Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
317Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
328Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
Throw\ThrowTest.cs (19)
21Assert.Contains(message, exception.Message, StringComparison.Ordinal);
32Assert.Contains(message, exception.Message, StringComparison.Ordinal);
149Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
163Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
177Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
185Assert.Equal(expectedMessage, exceptionImplicitArgumentName.Message);
191Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
199Assert.Equal(expectedMessage, exceptionImplicitArgumentName.Message);
273Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
284Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
382Assert.Contains(nameof(listButActuallyNull), exceptionImplicitArgumentName.Message);
420Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
SignalR.Client.FunctionalTestApp (1)
SocialSample (1)
Sockets.BindTests (4)
Sockets.FunctionalTests (1)
System.Collections.Concurrent (1)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (16)
System.ComponentModel.TypeConverter (1)
System.Configuration.ConfigurationManager (10)
System.Data.Common (8)
System.Data.Odbc (2)
System.Diagnostics.DiagnosticSource (1)
System.Drawing.Primitives (1)
System.Formats.Asn1 (1)
System.IO.Pipelines (1)
System.IO.Ports (1)
System.Net.Http.Json (1)
System.Net.HttpListener (10)
System.Net.Mail (1)
System.Private.CoreLib (32)
System.Private.DataContractSerialization (9)
System.Private.Windows.Core (14)
System.Private.Xml (27)
System\Xml\Schema\DataTypeImplementation.cs (2)
535throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
556throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
System\Xml\Schema\FacetChecker.cs (2)
371throw new XmlSchemaException(SR.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet!.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet);
673throw new XmlSchemaException(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
System\Xml\Schema\Preprocessor.cs (4)
546SendValidationEvent(SR.Sch_AttributeValueDataTypeDetailed, new string[] { "version", schema.Version, tokenDt.TypeCodeString, exception.Message }, exception, schema);
1993SendValidationEvent(SR.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, particle);
2037SendValidationEvent(SR.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, anyAttribute);
2114SendValidationEvent(SR.Sch_InvalidAttribute, new string[] { attributeName, fx.Message }, fx, xso);
System\Xml\Schema\XmlSchemaValidator.cs (6)
1278SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception);
1479SendValidationEvent(SR.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName!, _context.Namespace!), stringValue, GetTypeName(decl), exception.Message }, exception);
1650SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception);
1861SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning);
1963SendValidationEvent(SR.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), stringValue, GetTypeName(decl), exception.Message }, exception);
1978SendValidationEvent(SR.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName!, _context.Namespace!), stringValue, GetTypeName(decl), exception.Message }, exception);
System.Reflection.Metadata (4)
System.Resources.Extensions (1)
System.ServiceModel.NetFramingBase (16)
System.ServiceModel.NetNamedPipe (5)
System.ServiceModel.Primitives.Tests (25)
Channels\CommunicationObjectTest.cs (8)
322Assert.True(String.Equals(exceptionMessage, actualException.Message),
324exceptionMessage, actualException.Message));
349Assert.True(String.Equals(exceptionMessage, actualException.Message),
351exceptionMessage, actualException.Message));
376Assert.True(String.Equals(exceptionMessage, actualException.Message),
378exceptionMessage, actualException.Message));
407Assert.True(String.Equals(exceptionMessage, actualException.Message),
409exceptionMessage, actualException.Message));
Channels\CustomChannelTest.cs (12)
251Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
253expectedExceptionMessage, actualException.Message));
306Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
308expectedExceptionMessage, actualException.Message));
471Assert.True(String.Equals(caughtException.Message, thrownException.Message),
473thrownException.Message, caughtException.Message));
725Assert.True(string.Equals(thrownException.Message, caughtException.Message),
727thrownException.Message, caughtException.Message));
System.Text.Json (5)
System.Text.RegularExpressions.Generator (2)
System.Threading.Tasks.Dataflow (1)
System.Windows.Forms (42)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Design (35)
System.Windows.Forms.Design.Tests (6)
System.Windows.Forms.Interop.Tests (2)
System.Windows.Forms.Primitives.TestUtilities (3)
System.Windows.Forms.Tests (3)
System.Windows.Forms.UI.IntegrationTests (2)
System.Xaml (6)
TaskUsageLogger (1)
Templates.Blazor.Tests (16)
Templates.Blazor.WebAssembly.Auth.Tests (17)
Templates.Blazor.WebAssembly.Tests (17)
Templates.Mvc.Tests (17)
Templates.Tests (17)
Test.Utilities (12)
TestDiscoveryWorker (1)
Text.Analyzers (13)
UIAutomationClientSideProviders (3)
UnitTests.Common (1)
vbc (4)
VBCSCompiler (6)
WindowsBase.Tests (14)
WinFormsControlsTest (3)
XmlFormattersWebSite (1)
xunit.assert (5)
xunit.console (2)