Base:
property
Message
System.ArgumentException.Message
83 references to Message
Aspire.Hosting.Tests (2)
Utils\ContainerReferenceParserTests.cs (2)
16Assert.StartsWith("repository name must have at least one component", ex.Message); 32Assert.StartsWith("invalid reference format", ex.Message);
Microsoft.AspNetCore.Authentication.Test (1)
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
550ex => Assert.StartsWith("The value must not be a negative TimeSpan.", ex.Message)
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\RemoteJSRuntimeTest.cs (3)
34Assert.Equal("Exceeded the maximum byte array transfer limit for a call. (Parameter 'data')", ex.Message); 74Assert.Equal("Exceeded the maximum byte array transfer limit for a call. (Parameter 'data')", ex.Message); 86Assert.Equal("Exceeded the maximum byte array transfer limit for a call. (Parameter 'data')", ex.Message);
Microsoft.AspNetCore.Cors.Test (2)
CorsPolicyTests.cs (1)
56exception.Message);
CorsResultTests.cs (1)
38exception.Message);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.FormMapping.cs (1)
174Assert.Equal("Specified argument was out of the range of valid values.", anotherException.Message);
Microsoft.AspNetCore.HttpLogging.Tests (2)
W3CLoggerOptionsTests.cs (2)
22Assert.Contains("FileSizeLimit must be positive", ex.Message); 44Assert.Contains("FlushInterval must be positive", ex.Message);
Microsoft.AspNetCore.HttpOverrides.Tests (2)
IPNetworkTest.cs (2)
75Assert.StartsWith("The prefix length was out of range.", ex.Message); 106Assert.StartsWith("The prefix length was out of range.", ex.Message);
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\MiddleWareTests.cs (1)
581Assert.Equal("Cannot access back reference at index 9. Only 5 back references were captured.", ex.Message);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
Http1\Http1ConnectionTests.cs (1)
949Assert.StartsWith(CoreStrings.NonNegativeNumberOrNullRequired, ex.Message);
KestrelServerLimitsTests.cs (9)
109Assert.StartsWith(CoreStrings.PositiveNumberRequired, ex.Message); 176Assert.StartsWith(CoreStrings.PositiveTimeSpanRequired, exception.Message); 205Assert.StartsWith(CoreStrings.PositiveTimeSpanRequired, exception.Message); 236Assert.StartsWith(CoreStrings.PositiveNumberOrNullRequired, ex.Message); 260Assert.StartsWith(CoreStrings.NonNegativeNumberOrNullRequired, ex.Message); 291Assert.StartsWith(CoreStrings.NonNegativeNumberOrNullRequired, ex.Message); 323Assert.Contains("A value between", ex.Message); 338Assert.StartsWith(CoreStrings.GreaterThanOrEqualToZeroRequired, ex.Message); 354Assert.StartsWith(CoreStrings.GreaterThanZeroRequired, ex.Message);
MinDataRateTests.cs (2)
29Assert.StartsWith(CoreStrings.PositiveNumberOrNullMinDataRateRequired, exception.Message); 46Assert.StartsWith(CoreStrings.FormatMinimumGracePeriodRequired(Heartbeat.Interval.TotalSeconds), exception.Message);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
HttpsConnectionAdapterOptionsTest.cs (1)
40Assert.StartsWith(CoreStrings.PositiveTimeSpanRequired, exception.Message);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\GetSemanticInfoTests.cs (2)
5936Assert.StartsWith(expectedStartString: $"Unexpected SpecialType: '{(int)specialType}'.", actualString: e.Message); 5959Assert.StartsWith(expectedStartString: $"Unexpected SpecialType: '{(int)specialType}'.", actualString: e.Message);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
TimeExpirationAsyncTests.cs (1)
29Assert.StartsWith(message, ex.Message); // can have "\r\nParameter name:" etc
Microsoft.JSInterop.Tests (1)
JSRuntimeTest.cs (1)
396Assert.Equal("Element id '7' cannot be added to the byte arrays to be revived with length '2'.", ex.Message);
Microsoft.ML.Samples (1)
Dynamic\Transforms\DropColumns.cs (1)
62$" is thrown: {exception.Message}.");
Microsoft.ML.Tests (5)
AnomalyDetectionTests.cs (1)
288Assert.Contains("The learnt eigenvectors contained NaN values", ex.Message);
TextLoaderTests.cs (1)
585Assert.StartsWith("File or directory does not exist at path: fakefile.txt", ex.Message);
Transformers\FeatureSelectionTests.cs (3)
242Assert.Contains("Variable length column 'Features' is not allowed", ex.Message); 250Assert.Contains("Label column 'BadLabel' does not have compatible type. Expected types are float, double, int, bool and key.", ex.Message); 258Assert.Contains("Column 'Features' does not have compatible type. Expected types are float, double, int, bool and key.", ex.Message);
Shared.Tests (44)
Throw\DoubleTests.cs (12)
20Assert.StartsWith("Argument less than minimum value 1", exception.Message); 24Assert.StartsWith("Argument less than minimum value 1", exception.Message); 39Assert.StartsWith("Argument greater than maximum value 0", exception.Message); 43Assert.StartsWith("Argument greater than maximum value 0", exception.Message); 58Assert.StartsWith("Argument less or equal than minimum value 1.2", exception.Message); 62Assert.StartsWith("Argument less or equal than minimum value 1.2", exception.Message); 77Assert.StartsWith("Argument greater or equal than maximum value 1.22", exception.Message); 81Assert.StartsWith("Argument greater or equal than maximum value 1.22", exception.Message); 98Assert.StartsWith("Argument is zero", exception.Message); 117Assert.StartsWith("Argument not in the range", exception.Message); 121Assert.StartsWith("Argument not in the range", exception.Message); 128Assert.StartsWith("Argument not in the range", exception.Message);
Throw\IntegerTests.cs (14)
20Assert.StartsWith("Argument less than minimum value 1", exception.Message); 35Assert.StartsWith("Argument greater than maximum value 0", exception.Message); 50Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message); 65Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message); 80Assert.StartsWith("Argument is zero", exception.Message); 95Assert.StartsWith("Argument not in the range", exception.Message); 99Assert.StartsWith("Argument not in the range", exception.Message); 180Assert.StartsWith("Argument less than minimum value 1", exception.Message); 195Assert.StartsWith("Argument greater than maximum value 0", exception.Message); 210Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message); 225Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message); 240Assert.StartsWith("Argument is zero", exception.Message); 255Assert.StartsWith("Argument not in the range", exception.Message); 259Assert.StartsWith("Argument not in the range", exception.Message);
Throw\LongTests.cs (14)
20Assert.StartsWith("Argument less than minimum value 1", exception.Message); 35Assert.StartsWith("Argument greater than maximum value 0", exception.Message); 50Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message); 65Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message); 80Assert.StartsWith("Argument is zero", exception.Message); 95Assert.StartsWith("Argument not in the range", exception.Message); 99Assert.StartsWith("Argument not in the range", exception.Message); 180Assert.StartsWith("Argument less than minimum value 1", exception.Message); 195Assert.StartsWith("Argument greater than maximum value 0", exception.Message); 210Assert.StartsWith("Argument less or equal than minimum value 1", exception.Message); 225Assert.StartsWith("Argument greater or equal than maximum value 1", exception.Message); 240Assert.StartsWith("Argument is zero", exception.Message); 255Assert.StartsWith("Argument not in the range", exception.Message); 259Assert.StartsWith("Argument not in the range", exception.Message);
Throw\ThrowTest.cs (4)
92Assert.Contains(message, exception.Message, StringComparison.Ordinal); 104Assert.Contains(message, exception.Message, StringComparison.Ordinal); 405Assert.Contains("is an invalid value for enum type", exception.Message); 409Assert.Contains("is an invalid value for enum type", exception.Message);
System.Windows.Forms.Tests (2)
System\Windows\Forms\ScrollBarTests.cs (2)
1752string expectedMessage = new ArgumentOutOfRangeException(paramName, string.Format(SR.InvalidBoundArgument, nameof(control.Value), value, $"'{nameof(control.Minimum)}'", $"'{nameof(control.Maximum)}'")).Message; 1753Assert.Equal(expectedMessage, ex.Message);