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