47 references to HandledExceptions
Microsoft.AspNetCore.Components.Tests (47)
ComponentBaseTest.cs (2)
462Assert.IsType<InvalidTimeZoneException>(renderer.HandledExceptions[0]); 490Assert.IsType<InvalidTimeZoneException>(renderer.HandledExceptions[0]);
RendererTest.cs (43)
713Assert.Empty(renderer.HandledExceptions); 720var exception = Assert.Single(renderer.HandledExceptions); 1785Assert.Empty(renderer.HandledExceptions); 1823Assert.Empty(renderer.HandledExceptions); 1865Assert.Empty(renderer.HandledExceptions); 2302var aex = Assert.IsType<AggregateException>(Assert.Single(renderer.HandledExceptions)); 2338var aex = Assert.Single(renderer.HandledExceptions); 2372Assert.Empty(renderer.HandledExceptions); 2412Assert.Empty(renderer.HandledExceptions); 2417Assert.Empty(renderer.HandledExceptions); 2456Assert.Empty(renderer.HandledExceptions); 2461var aex = Assert.IsType<InvalidOperationException>(Assert.Single(renderer.HandledExceptions)); 2496Assert.IsType<TaskCanceledException>(Assert.Single(renderer.HandledExceptions)); 2534Assert.Empty(renderer.HandledExceptions); 2540var aex = Assert.IsType<TaskCanceledException>(Assert.Single(renderer.HandledExceptions)); 2604var ex = Assert.IsType<Exception>(Assert.Single(renderer.HandledExceptions)); 2610Assert.Equal(2, renderer.HandledExceptions.Count); 2611ex = renderer.HandledExceptions[1]; 3573Assert.Equal(new[] { exception }, renderer.HandledExceptions); 3606Assert.Equal(new[] { exception }, renderer.HandledExceptions); 3639Assert.Equal(new[] { exception }, renderer.HandledExceptions); 3679Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3695Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3735Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3792Assert.Equal(2, renderer.HandledExceptions.Count); 3793Assert.Contains(exception1, renderer.HandledExceptions); 3794Assert.Contains(exception2, renderer.HandledExceptions); 3846Assert.Equal(2, renderer.HandledExceptions.Count); 3847Assert.Contains(exception1, renderer.HandledExceptions); 3848Assert.Contains(exception2, renderer.HandledExceptions); 3902Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3958Assert.Same(exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 3978Assert.Same(ConstructorThrowingComponent.Exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 4018Assert.Same(AttachThrowingComponent.Exception, Assert.Single(renderer.HandledExceptions).GetBaseException()); 4068Assert.Empty(renderer.HandledExceptions); 4103Assert.Empty(renderer.HandledExceptions); 4144Assert.Empty(renderer.HandledExceptions); 4258var aex = Assert.IsType<AggregateException>(Assert.Single(renderer.HandledExceptions)); 4286var handledException = Assert.Single(renderer.HandledExceptions); 4319var handledException = Assert.Single(renderer.HandledExceptions); 4928Assert.Same(exception1, Assert.Single(renderer.HandledExceptions)); 4935Assert.Equal(2, renderer.HandledExceptions.Count); 4936Assert.Same(exception2, renderer.HandledExceptions[1]);
Routing\RouterTest.cs (1)
89Assert.Empty(_renderer.HandledExceptions);
src\Components\Shared\test\TestRenderer.cs (1)
107HandledExceptions.Add(exception);