12 references to TestComponent
Microsoft.AspNetCore.Components.Tests (12)
DynamicComponentTest.cs (12)
52{ nameof(DynamicComponent.Type), typeof(TestComponent) }, 60AssertFrame.Component<TestComponent>(batch.ReferenceFrames[0], 2, 0); 72{ nameof(TestComponent.IntProp), 123 }, 73{ nameof(TestComponent.ChildContent), (RenderFragment)(builder => 80{ nameof(DynamicComponent.Type), typeof(TestComponent) }, 93AssertFrame.Component<TestComponent>(batch.ReferenceFrames[0], 4, 0); 94AssertFrame.Attribute(batch.ReferenceFrames[1], nameof(TestComponent.IntProp), 123, 1); 95AssertFrame.Attribute(batch.ReferenceFrames[2], nameof(TestComponent.ChildContent), 1); 110{ nameof(TestComponent.IntProp), 123 }, 114{ nameof(DynamicComponent.Type), typeof(TestComponent) }, 124Assert.IsType<TestComponent>(instance.Instance); 125Assert.Equal(123, ((TestComponent)instance.Instance).IntProp);