50 references to TestComponent
Microsoft.AspNetCore.Components.Server.Tests (50)
Circuits\ServerComponentDeserializerTest.cs (50)
29var markers = SerializeMarkers(CreateMarkers(typeof(TestComponent)));
35Assert.Equal(typeof(TestComponent).FullName, deserializedDescriptor.ComponentType.FullName);
44(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = "Value" })));
50Assert.Equal(typeof(TestComponent).FullName, deserializedDescriptor.ComponentType.FullName);
63(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = null })));
69Assert.Equal(typeof(TestComponent).FullName, deserializedDescriptor.ComponentType.FullName);
82var markers = SerializeMarkers(CreateMarkers(typeof(TestComponent), typeof(TestComponent)));
90Assert.Equal(typeof(TestComponent).FullName, firstDescriptor.ComponentType.FullName);
94Assert.Equal(typeof(TestComponent).FullName, secondDescriptor.ComponentType.FullName);
103(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
104(typeof(TestComponent), new Dictionary<string, object> { ["Second"] = null })));
112Assert.Equal(typeof(TestComponent).FullName, firstDescriptor.ComponentType.FullName);
120Assert.Equal(typeof(TestComponent).FullName, secondDescriptor.ComponentType.FullName);
133(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
134(typeof(TestComponent), null)));
142Assert.Equal(typeof(TestComponent).FullName, firstDescriptor.ComponentType.FullName);
150Assert.Equal(typeof(TestComponent).FullName, secondDescriptor.ComponentType.FullName);
159var markers = SerializeMarkers(Enumerable.Reverse(CreateMarkers(typeof(TestComponent), typeof(TestComponent))).ToArray());
171var firstChain = CreateMarkers(typeof(TestComponent));
172var secondChain = CreateMarkers(new ServerComponentInvocationSequence(), typeof(TestComponent), typeof(TestComponent)).Skip(1);
185var markers = SerializeMarkers(CreateMarkers(typeof(TestComponent), typeof(TestComponent)).Skip(1).ToArray());
197var brokenChain = CreateMarkers(typeof(TestComponent), typeof(TestComponent), typeof(TestComponent))
213var missingDescriptorMarker = CreateMarkers(typeof(TestComponent));
228var missingTypeMarker = CreateMarkers(typeof(TestComponent));
244var missingSequenceMarker = CreateMarkers(typeof(TestComponent), typeof(TestComponent));
261var missingUnknownComponentTypeMarker = CreateMarkers(typeof(TestComponent));
278var missingUnknownComponentTypeMarker = CreateMarkers(typeof(TestComponent));
280SerializeComponent(typeof(TestComponent).Assembly.GetName().Name, "Unknown.Type"),
295var invalidDescriptorMarker = CreateMarkers(typeof(TestComponent));
310var markers = CreateMarkers(typeof(TestComponent));
315Assert.Equal(typeof(TestComponent).FullName, descriptor.ComponentType.FullName);
323(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }),
324(typeof(TestComponent), null));
331Assert.Equal(typeof(TestComponent).FullName, firstDescriptor.ComponentType.FullName);
337Assert.Equal(typeof(TestComponent).FullName, secondDescriptor.ComponentType.FullName);
345var markers = CreateMarkers(typeof(TestComponent), typeof(TestComponent));
357var firstInvocationMarkers = CreateMarkers(typeof(TestComponent));
359var secondInvocationMarkers = CreateMarkers(typeof(TestComponent));
371var markers = CreateMarkers(typeof(TestComponent));
383var firstInvocationMarkers = CreateMarkers(typeof(TestComponent), typeof(TestComponent));
385var secondInvocationMarkers = CreateMarkers(typeof(TestComponent));