89 references to ThrowsArgument
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\RootComponentMappingTest.cs (1)
28ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.CookiePolicy.Test (1)
CookieConsentTests.cs (1)
696ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Cors.Test (1)
CorsServiceTests.cs (1)
26ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (4)
DataProtectionCommonExtensionsTests.cs (4)
29ExceptionAssert.ThrowsArgument( 46ExceptionAssert.ThrowsArgument( 150ExceptionAssert.ThrowsArgument( 169ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.DataProtection.Tests (3)
SecretTests.cs (3)
14ExceptionAssert.ThrowsArgument( 204ExceptionAssert.ThrowsArgument( 241ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Http.Abstractions.Tests (6)
PathStringTests.cs (1)
16ExceptionAssert.ThrowsArgument(() => new PathString("hello"), "value", "The path in 'value' must start with '/'.");
QueryStringTests.cs (1)
15ExceptionAssert.ThrowsArgument(() => new QueryString("hello"), "value", "The leading '?' must be included for a non-empty query.");
RouteValueDictionaryTests.cs (4)
163ExceptionAssert.ThrowsArgument( 180ExceptionAssert.ThrowsArgument( 901ExceptionAssert.ThrowsArgument(() => dict.Add("key", "value2"), "key", message); 922ExceptionAssert.ThrowsArgument(() => dict.Add("kEy", "value2"), "key", message);
Microsoft.AspNetCore.Mvc.Core.Test (26)
ApiConventionMethodAttributeTest.cs (5)
21ExceptionAssert.ThrowsArgument( 43ExceptionAssert.ThrowsArgument( 95ExceptionAssert.ThrowsArgument( 112ExceptionAssert.ThrowsArgument( 129ExceptionAssert.ThrowsArgument(
ApiConventionTypeAttributeTest.cs (3)
22ExceptionAssert.ThrowsArgument( 43ExceptionAssert.ThrowsArgument( 64ExceptionAssert.ThrowsArgument(
ControllerBaseTest.cs (7)
117ExceptionAssert.ThrowsArgument( 132ExceptionAssert.ThrowsArgument( 215ExceptionAssert.ThrowsArgument( 230ExceptionAssert.ThrowsArgument( 245ExceptionAssert.ThrowsArgument( 260ExceptionAssert.ThrowsArgument( 275ExceptionAssert.ThrowsArgument(
Filters\FilterCollectionTest.cs (2)
75ExceptionAssert.ThrowsArgument( 146ExceptionAssert.ThrowsArgument(
Formatters\FormatterMappingsTest.cs (3)
52ExceptionAssert.ThrowsArgument( 69ExceptionAssert.ThrowsArgument( 89ExceptionAssert.ThrowsArgument(
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
62ExceptionAssert.ThrowsArgument(
ModelBinding\BindingSourceValueProviderTest.cs (2)
25ExceptionAssert.ThrowsArgument( 43ExceptionAssert.ThrowsArgument(
ModelBinding\Metadata\BindingSourceTest.cs (1)
22ExceptionAssert.ThrowsArgument(
ModelBinding\Metadata\CompositeBindingSourceTest.cs (1)
26ExceptionAssert.ThrowsArgument(
ModelBinding\Metadata\ModelMetadataProviderExtensionsTest.cs (1)
17ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
EnumerableWrapperProviderTest.cs (1)
83ExceptionAssert.ThrowsArgument(() => new EnumerableWrapperProvider(
SerializableErrorWrapperProviderTest.cs (1)
50ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorViewEngineTest.cs (3)
60ExceptionAssert.ThrowsArgument( 215ExceptionAssert.ThrowsArgument( 1132ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Mvc.RazorPages.Test (14)
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (1)
21ExceptionAssert.ThrowsArgument(
PageModelTest.cs (6)
123ExceptionAssert.ThrowsArgument( 206ExceptionAssert.ThrowsArgument( 221ExceptionAssert.ThrowsArgument( 236ExceptionAssert.ThrowsArgument( 251ExceptionAssert.ThrowsArgument( 266ExceptionAssert.ThrowsArgument(
PageTest.cs (7)
128ExceptionAssert.ThrowsArgument( 143ExceptionAssert.ThrowsArgument( 226ExceptionAssert.ThrowsArgument( 241ExceptionAssert.ThrowsArgument( 256ExceptionAssert.ThrowsArgument( 271ExceptionAssert.ThrowsArgument( 286ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
InputTagHelperTest.cs (2)
289ExceptionAssert.ThrowsArgument( 334ExceptionAssert.ThrowsArgument(
SelectTagHelperTest.cs (1)
730ExceptionAssert.ThrowsArgument(
TagHelperOutputExtensionsTest.cs (1)
546ExceptionAssert.ThrowsArgument(
TextAreaTagHelperTest.cs (1)
185ExceptionAssert.ThrowsArgument(
ValidationSummaryTagHelperTest.cs (1)
580ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (16)
DefaultHtmlGeneratorTest.cs (3)
94ExceptionAssert.ThrowsArgument( 150ExceptionAssert.ThrowsArgument( 450ExceptionAssert.ThrowsArgument(
RemoteAttributeBaseTest.cs (2)
105ExceptionAssert.ThrowsArgument( 134ExceptionAssert.ThrowsArgument(
Rendering\HtmlHelperCheckboxTest.cs (1)
97ExceptionAssert.ThrowsArgument(
Rendering\HtmlHelperHiddenTest.cs (1)
434ExceptionAssert.ThrowsArgument(
Rendering\HtmlHelperPasswordTest.cs (1)
154ExceptionAssert.ThrowsArgument(
Rendering\HtmlHelperRadioButtonExtensionsTest.cs (1)
176ExceptionAssert.ThrowsArgument(
Rendering\HtmlHelperSelectTest.cs (6)
379ExceptionAssert.ThrowsArgument( 1278ExceptionAssert.ThrowsArgument( 1292ExceptionAssert.ThrowsArgument( 1350ExceptionAssert.ThrowsArgument( 1364ExceptionAssert.ThrowsArgument( 1378ExceptionAssert.ThrowsArgument(
Rendering\HtmlHelperTextBoxExtensionsTest.cs (1)
179ExceptionAssert.ThrowsArgument(
Microsoft.AspNetCore.Routing.Tests (1)
Tree\TreeRouteBuilderTest.cs (1)
39ExceptionAssert.ThrowsArgument(() =>
Microsoft.AspNetCore.Shared.Tests (3)
AdaptiveCapacityDictionaryTests.cs (3)
65ExceptionAssert.ThrowsArgument( 407ExceptionAssert.ThrowsArgument(() => dict.Add("key", "value2"), "key", message); 428ExceptionAssert.ThrowsArgument(() => dict.Add("kEy", "value2"), "key", message);
Microsoft.JSInterop.Tests (2)
Infrastructure\DotNetDispatcherTest.cs (2)
20ExceptionAssert.ThrowsArgument( 32ExceptionAssert.ThrowsArgument(