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