45 references to HandledExceptions
Microsoft.AspNetCore.Components.Tests (45)
RendererTest.cs (43)
712
Assert.Empty(renderer.
HandledExceptions
);
719
var exception = Assert.Single(renderer.
HandledExceptions
);
1784
Assert.Empty(renderer.
HandledExceptions
);
1822
Assert.Empty(renderer.
HandledExceptions
);
1864
Assert.Empty(renderer.
HandledExceptions
);
2301
var aex = Assert.IsType<AggregateException>(Assert.Single(renderer.
HandledExceptions
));
2337
var aex = Assert.Single(renderer.
HandledExceptions
);
2371
Assert.Empty(renderer.
HandledExceptions
);
2411
Assert.Empty(renderer.
HandledExceptions
);
2416
Assert.Empty(renderer.
HandledExceptions
);
2455
Assert.Empty(renderer.
HandledExceptions
);
2460
var aex = Assert.IsType<InvalidOperationException>(Assert.Single(renderer.
HandledExceptions
));
2495
Assert.IsType<TaskCanceledException>(Assert.Single(renderer.
HandledExceptions
));
2533
Assert.Empty(renderer.
HandledExceptions
);
2539
var aex = Assert.IsType<TaskCanceledException>(Assert.Single(renderer.
HandledExceptions
));
2603
var ex = Assert.IsType<Exception>(Assert.Single(renderer.
HandledExceptions
));
2609
Assert.Equal(2, renderer.
HandledExceptions
.Count);
2610
ex = renderer.
HandledExceptions
[1];
3572
Assert.Equal(new[] { exception }, renderer.
HandledExceptions
);
3605
Assert.Equal(new[] { exception }, renderer.
HandledExceptions
);
3638
Assert.Equal(new[] { exception }, renderer.
HandledExceptions
);
3678
Assert.Same(exception, Assert.Single(renderer.
HandledExceptions
).GetBaseException());
3694
Assert.Same(exception, Assert.Single(renderer.
HandledExceptions
).GetBaseException());
3734
Assert.Same(exception, Assert.Single(renderer.
HandledExceptions
).GetBaseException());
3791
Assert.Equal(2, renderer.
HandledExceptions
.Count);
3792
Assert.Contains(exception1, renderer.
HandledExceptions
);
3793
Assert.Contains(exception2, renderer.
HandledExceptions
);
3845
Assert.Equal(2, renderer.
HandledExceptions
.Count);
3846
Assert.Contains(exception1, renderer.
HandledExceptions
);
3847
Assert.Contains(exception2, renderer.
HandledExceptions
);
3901
Assert.Same(exception, Assert.Single(renderer.
HandledExceptions
).GetBaseException());
3957
Assert.Same(exception, Assert.Single(renderer.
HandledExceptions
).GetBaseException());
3977
Assert.Same(ConstructorThrowingComponent.Exception, Assert.Single(renderer.
HandledExceptions
).GetBaseException());
4017
Assert.Same(AttachThrowingComponent.Exception, Assert.Single(renderer.
HandledExceptions
).GetBaseException());
4067
Assert.Empty(renderer.
HandledExceptions
);
4102
Assert.Empty(renderer.
HandledExceptions
);
4143
Assert.Empty(renderer.
HandledExceptions
);
4257
var aex = Assert.IsType<AggregateException>(Assert.Single(renderer.
HandledExceptions
));
4285
var handledException = Assert.Single(renderer.
HandledExceptions
);
4318
var handledException = Assert.Single(renderer.
HandledExceptions
);
4927
Assert.Same(exception1, Assert.Single(renderer.
HandledExceptions
));
4934
Assert.Equal(2, renderer.
HandledExceptions
.Count);
4935
Assert.Same(exception2, renderer.
HandledExceptions
[1]);
Routing\RouterTest.cs (1)
86
Assert.Empty(_renderer.
HandledExceptions
);
src\Components\Shared\test\TestRenderer.cs (1)
107
HandledExceptions
.Add(exception);