4 instantiations of DisposableComponent
Microsoft.AspNetCore.Components.Tests (4)
RendererTest.cs (4)
4151var component = new DisposableComponent(); 4194var component = new DisposableComponent(); 4795var unrelatedComponent = new DisposableComponent(); 4944var component = new DisposableComponent
35 references to DisposableComponent
Microsoft.AspNetCore.Components.Tests (35)
RendererTest.cs (35)
2279builder.OpenComponent<DisposableComponent>(1); 2280builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1)); 2283builder.OpenComponent<DisposableComponent>(2); 2284builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception2)); 2562builder.OpenComponent<DisposableComponent>(1); 2563builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count1++; })); 2566builder.OpenComponent<DisposableComponent>(2); 2567builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count2++; throw exception1; })); 2570builder.OpenComponent<DisposableComponent>(3); 2571builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count3++; })); 2575builder.OpenComponent<DisposableComponent>(4); 2576builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count4++; throw exception2; })); 2579builder.OpenComponent<DisposableComponent>(5); 2580builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count5++; })); 4151var component = new DisposableComponent(); 4194var component = new DisposableComponent(); 4213builder.OpenComponent<DisposableComponent>(1); 4221var nestedComponent = Assert.IsType<DisposableComponent>(componentFrame.Component); 4241builder.OpenComponent<DisposableComponent>(1); 4242builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1)); 4245builder.OpenComponent<DisposableComponent>(2); 4246builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception2)); 4789builder.OpenComponent<DisposableComponent>(0); 4795var unrelatedComponent = new DisposableComponent(); 4803.GetComponentFrames<DisposableComponent>().Single(); 4822Assert.True(((DisposableComponent)nestedDisposableComponentFrame.Component).Disposed); 4870builder.OpenComponent<DisposableComponent>(0); 4877.GetComponentFrames<DisposableComponent>().Single(); 4878var nestedComponent = (DisposableComponent)nestedComponentFrame.Component; 4906builder.OpenComponent<DisposableComponent>(1); 4907builder.AddComponentParameter(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1)); 4919.GetComponentFrames<DisposableComponent>().Single(); 4944var component = new DisposableComponent