31 references to Throws
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageTest.cs (1)
508ExceptionAssert.Throws<InvalidOperationException>(() => page.IsSectionDefined("foo"),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
PageRemoteAttributeTest.cs (1)
89ExceptionAssert.Throws<InvalidOperationException>(
Rendering\HtmlHelperNameExtensionsTest.cs (2)
335ExceptionAssert.Throws<InvalidOperationException>(() => helper.IdFor(m => collection[m]), message); 336ExceptionAssert.Throws<InvalidOperationException>(() => helper.NameFor(m => collection[m]), message);
Microsoft.AspNetCore.Routing.Tests (27)
RouteTest.cs (1)
1612var exception = ExceptionAssert.Throws<RouteCreationException>(
Template\TemplateParserTests.cs (26)
503ExceptionAssert.Throws<ArgumentException>( 516ExceptionAssert.Throws<ArgumentException>( 534ExceptionAssert.Throws<ArgumentException>( 550ExceptionAssert.Throws<ArgumentException>( 560var ex = ExceptionAssert.Throws<ArgumentException>( 575ExceptionAssert.Throws<ArgumentException>( 585ExceptionAssert.Throws<ArgumentException>( 595ExceptionAssert.Throws<ArgumentException>( 604ExceptionAssert.Throws<ArgumentException>( 614ExceptionAssert.Throws<ArgumentException>( 644ExceptionAssert.Throws<ArgumentException>( 652ExceptionAssert.Throws<ArgumentException>( 662ExceptionAssert.Throws<ArgumentException>( 672ExceptionAssert.Throws<ArgumentException>( 681ExceptionAssert.Throws<ArgumentException>( 690ExceptionAssert.Throws<ArgumentException>( 700ExceptionAssert.Throws<ArgumentException>( 709ExceptionAssert.Throws<ArgumentException>( 721ExceptionAssert.Throws<ArgumentException>( 733ExceptionAssert.Throws<ArgumentException>( 743ExceptionAssert.Throws<ArgumentException>( 752ExceptionAssert.Throws<ArgumentException>( 774ExceptionAssert.Throws<ArgumentException>( 783ExceptionAssert.Throws<ArgumentException>( 792ExceptionAssert.Throws<ArgumentException>( 804ExceptionAssert.Throws<ArgumentException>(