Base:

property
Message
System.Exception.Message
2 overrides of Message
System.Private.CoreLib (2)
277 references to Message
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Python.Tests (4)
Aspire.Hosting.Testing.Tests (7)
Aspire.Hosting.Tests (11)
ModelNameTests.cs (9)
17Assert.Equal("Value cannot be null. (Parameter 'name')", exception.Message);
27Assert.Equal($"Resource name '' is invalid. Name must be between 1 and 64 characters long. (Parameter 'name')", exception.Message);
38Assert.Equal($"Resource name '{name}' is invalid. Name must be between 1 and 64 characters long. (Parameter 'name')", exception.Message);
48Assert.Equal("Resource name ' ' is invalid. Name must contain only ASCII letters, digits, and hyphens. (Parameter 'name')", exception.Message);
58Assert.Equal("Resource name 'test_name' is invalid. Name must contain only ASCII letters, digits, and hyphens. (Parameter 'name')", exception.Message);
68Assert.Equal("Resource name '-abc' is invalid. Name must start with an ASCII letter. (Parameter 'name')", exception.Message);
78Assert.Equal("Resource name 'test--name' is invalid. Name cannot contain consecutive hyphens. (Parameter 'name')", exception.Message);
88Assert.Equal("Resource name '1abc' is invalid. Name must start with an ASCII letter. (Parameter 'name')", exception.Message);
98Assert.Equal("Resource name 'abc-' is invalid. Name cannot end with a hyphen. (Parameter 'name')", exception.Message);
Aspire.Microsoft.Azure.Cosmos.Tests (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
dotnet-openapi (2)
dotnet-svcutil.xmlserializer (1)
Microsoft.AspNetCore.Antiforgery.Test (2)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.Tests (7)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.Build (13)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (4)
Microsoft.Build.Framework (1)
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (29)
GenerateResource.cs (4)
2068Log.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", Sources[i].ItemSpec, e.Message);
2612"General.InvalidResxFile", ae.Message);
2913_logger.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", filename, ex.Message);
3116_logger.LogWarningWithCodeFromResources(null, name, 0, 0, 0, 0, "GenerateResource.CreatingCultureInfoFailed", e.GetType().Name, e.Message, assemblyName.ToString());
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.Utilities.Core (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenTupleTest.cs (11)
5796Assert.Contains(CodeAnalysisResources.TupleElementNameCountMismatch, e.Message);
5801Assert.Contains(CodeAnalysisResources.TupleElementLocationCountMismatch, e.Message);
6284Assert.Contains(CodeAnalysisResources.TupleUnderlyingTypeMustBeTupleCompatible, e.Message);
6297Assert.Contains(CodeAnalysisResources.TupleElementNameEmpty, e.Message);
6298Assert.Contains("elementNames[1]", e.Message);
6315Assert.Contains(CSharpResources.NotACSharpSymbol, e.Message);
6332Assert.Contains(CSharpResources.NotACSharpSymbol, e.Message);
6803Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
6843Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
6872Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
6912Assert.Contains(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, e.Message);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Diagnostics\DiagnosticAnalyzerTests.cs (5)
854string message = new ArgumentException(string.Format(CodeAnalysisResources.UnsupportedDiagnosticReported, AnalyzerReportingUnsupportedDiagnostic.UnsupportedDescriptor.Id), "diagnostic").Message;
912string message = new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticIdReported, AnalyzerWithInvalidDiagnosticId.Descriptor.Id), "diagnostic").Message;
952string message = new ArgumentException(string.Format(CodeAnalysisResources.SupportedDiagnosticsHasNullDescriptor, analyzerFullName), "SupportedDiagnostics").Message;
1015string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, AnalyzerWithInvalidDiagnosticLocation.Descriptor.Id, treeInAnotherCompilation.FilePath), "diagnostic").Message;
1108string.Format(CodeAnalysisResources.InvalidDiagnosticSpanReported, AnalyzerWithInvalidDiagnosticSpan.Descriptor.Id, badSpan, treeInAnotherCompilation.FilePath), "diagnostic").Message;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.Test.Utilities (6)
Microsoft.CodeAnalysis.UnitTests (23)
Diagnostics\OperationTests.cs (18)
158Assert.Equal(new ArgumentException(argumentExceptionMessage, "body").Message, ex.Message);
176Assert.Equal(new ArgumentException(argumentExceptionMessage, "initializer").Message, ex.Message);
194Assert.Equal(new ArgumentException(argumentExceptionMessage, "initializer").Message, ex.Message);
212Assert.Equal(new ArgumentException(argumentExceptionMessage, "initializer").Message, ex.Message);
234Assert.Equal(new ArgumentException(argumentExceptionMessage, "constructorBody").Message, ex.Message);
254Assert.Equal(new ArgumentException(argumentExceptionMessage, "methodBody").Message, ex.Message);
287Assert.Equal(ex.Message, new ArgumentNullException("node").Message);
300Assert.Equal(ex.Message, new ArgumentNullException("semanticModel").Message);
315Assert.Equal(ex.Message, new ArgumentException(CodeAnalysisResources.NotARootOperation, "operation").Message);
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Helix.JobSender.Tests (2)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.JSInterop.Tests (7)
Microsoft.ML.AutoML.Tests (19)
UserInputValidationTests.cs (19)
30Assert.StartsWith("Training data cannot be null", ex.Message);
39Assert.Equal("Provided label column cannot be null", ex.Message);
51Assert.Equal($"Provided label column '{columnName}' not found in training data.", ex.Message);
66ex.Message);
79Assert.Equal("Provided label column 'Label' was of type Boolean, but only type Single is allowed.", ex.Message);
90Assert.Equal("Null column string was specified as numeric in column information", ex.Message);
120Assert.StartsWith("Training data and validation data schemas do not match. Train data has '2' columns,and validation data has '1' columns.", ex.Message);
143Assert.StartsWith("Training data and validation data schemas do not match. Column '1' exists in train data, but not in validation data.", ex.Message);
166Assert.StartsWith("Training data and validation data schemas do not match. Column '1' is of type String in train data, and type Single in validation data.", ex.Message);
174Assert.StartsWith("Provided path cannot be null", ex.Message);
181Assert.StartsWith("File 'idontexist' does not exist", ex.Message);
190Assert.StartsWith("File at path 'empty' cannot be empty", ex.Message);
209Assert.StartsWith("Features column must be of data type Single", ex.Message);
229Assert.Equal("Provided text column 'TextColumn' was of type Single, but only type String is allowed.", ex.Message);
304Assert.StartsWith("Only supported feature column types are Boolean, Single, and String. Please change the feature column UInt64 of type UInt64 to one of the supported types.", ex.Message);
317Assert.StartsWith("Training data has 0 rows", ex.Message);
340Assert.StartsWith("Validation data has 0 rows", ex.Message);
407ex.Message);
422ex.Message);
MSBuild (5)
MSBuildTaskHost (2)
PresentationCore (1)
PresentationFramework.Tests (8)
Security.TransportSecurity.IntegrationTests (2)
Shared.Tests (11)
Throw\ThrowTest.cs (11)
42Assert.Contains(message, exception.Message, StringComparison.Ordinal);
55Assert.Contains(message, exception.Message, StringComparison.Ordinal);
74Assert.Contains(message, exception.Message, StringComparison.Ordinal);
233Assert.StartsWith("Argument is whitespace", exception.Message);
255Assert.StartsWith("Argument is an empty string", exception.Message);
296Assert.StartsWith("Buffer", exception.Message);
341Assert.StartsWith("Collection is empty", exception.Message);
345Assert.StartsWith("Collection is empty", exception.Message);
349Assert.StartsWith("Collection is empty", exception.Message);
355Assert.StartsWith("Collection is empty", exception.Message);
361Assert.StartsWith("Collection is empty", exception.Message);
System.Data.Common (2)
System.Data.Odbc (2)
System.Formats.Nrbf (1)
System.IO.MemoryMappedFiles (1)
System.Net.HttpListener (3)
System.Private.CoreLib (2)
System.Private.Windows.Core (1)
System.Security.Cryptography (1)
System.Security.Cryptography.Pkcs (1)
System.Windows.Forms.Design (2)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Primitives.Tests (9)
System.Windows.Forms.Tests (2)