48 references to Exception
Microsoft.AspNetCore.Mvc.Core.Test (8)
Infrastructure\ControllerActionInvokerTest.cs (8)
545
var invoker = CreateInvoker(filter.Object, exception:
Exception
);
554
Assert.Same(
Exception
, context.Exception);
674
exception:
Exception
);
790
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter.Object, exceptionFilter.Object }, exception:
Exception
);
814
Assert.Same(
Exception
, context.Exception);
842
exception:
Exception
);
1621
else if (exception ==
Exception
)
1789
throw
Exception
;
Microsoft.AspNetCore.Mvc.Core.TestCommon (33)
CommonResourceInvokerTest.cs (33)
103
var invoker = CreateInvoker(new[] { filter1.Object, filter2.Object }, exception:
Exception
);
112
Assert.Same(
Exception
, exception);
147
var invoker = CreateInvoker(new[] { filter1.Object, filter2.Object }, exception:
Exception
);
158
Assert.Same(
Exception
, exception);
178
var invoker = CreateInvoker(new[] { filter1.Object, filter2.Object }, exception:
Exception
);
216
exception:
Exception
);
244
var invoker = CreateInvoker(new[] { filter1.Object, filter2.Object }, exception:
Exception
);
282
exception:
Exception
);
312
var invoker = CreateInvoker(filterMetadata, exception:
Exception
);
351
exception:
Exception
);
380
var invoker = CreateInvoker(new IFilterMetadata[] { filter1.Object, filter2.Object }, exception:
Exception
);
419
exception:
Exception
);
462
exception:
Exception
);
482
var invoker = CreateInvoker(filter.Object, exception:
Exception
);
485
await Assert.ThrowsAsync(
Exception
.GetType(), invoker.InvokeAsync);
509
var invoker = CreateInvoker(new IFilterMetadata[] { filter.Object, resultFilter.Object }, exception:
Exception
);
545
exception:
Exception
);
1260
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter.Object, exceptionFilter.Object }, exception:
Exception
);
1327
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter.Object }, exception:
Exception
);
1333
Assert.Same(
Exception
, context.Exception);
1334
Assert.Same(
Exception
, context.ExceptionDispatchInfo.SourceException);
1392
Assert.Same(
Exception
, context.Exception);
1393
Assert.Same(
Exception
, context.ExceptionDispatchInfo.SourceException);
1399
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter.Object }, exception:
Exception
);
1435
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter1.Object, resourceFilter2.Object }, exception:
Exception
);
1471
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter1.Object, resourceFilter2.Object }, exception:
Exception
);
1507
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter1.Object, resourceFilter2.Object }, exception:
Exception
);
1562
exception:
Exception
);
1610
exception:
Exception
);
1659
exception:
Exception
);
1952
var invoker = CreateInvoker(new IFilterMetadata[] { exceptionFilter.Object, resultFilter.Object, },
Exception
);
1979
var invoker = CreateInvoker(new IFilterMetadata[] { exceptionFilter.Object, resultFilter.Object, },
Exception
);
2010
Exception
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\PageActionInvokerTest.cs (7)
1062
Assert.Same(
Exception
, c.Exception);
1068
var invoker = CreateInvoker(filter.Object, exception:
Exception
);
1077
Assert.Same(
Exception
, context.Exception);
1202
exception:
Exception
);
1320
var invoker = CreateInvoker(new IFilterMetadata[] { resourceFilter.Object, exceptionFilter.Object }, exception:
Exception
);
1344
Assert.Same(
Exception
, context.Exception);
1375
exception:
Exception
);