45 references to Attribute
Microsoft.AspNetCore.Components.Tests (45)
RendererTest.cs (1)
2179AssertFrame.Attribute(renderer.Batches[1].ReferenceFrames[0], "class", "second");
Rendering\RenderTreeBuilderTest.cs (31)
250frame => AssertFrame.Attribute(frame, "attribute1", "value 1"), 251frame => AssertFrame.Attribute(frame, "attribute2", "123"), 312frame => AssertFrame.Attribute(frame, "attribute1", "test1"), 315frame => AssertFrame.Attribute(frame, "attribute7", "the end")); 346frame => AssertFrame.Attribute(frame, "attribute1", "value2"), 620frame => AssertFrame.Attribute(frame, "child1attribute1", "A"), 621frame => AssertFrame.Attribute(frame, "child1attribute2", "B"), 623frame => AssertFrame.Attribute(frame, "child2attribute", "C")); 648frame => AssertFrame.Attribute(frame, "child1attribute1", "A"), 649frame => AssertFrame.Attribute(frame, "child1attribute2", "B"), 651frame => AssertFrame.Attribute(frame, "child2attribute", "C")); 726frame => AssertFrame.Attribute(frame, "attribute2", "123", 1), 994frame => AssertFrame.Attribute(frame, "attr", "hi", 1)); 1031frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1051frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1436frame => AssertFrame.Attribute(frame, "attr", "hi", 1)); 1454frame => AssertFrame.Attribute(frame, "attr", "hi", 1)); 1710frame => AssertFrame.Attribute(frame, "attribute before", "before value", 1), 1711frame => AssertFrame.Attribute(frame, "attribute after", "after value", 2)); 1829f => AssertFrame.Attribute(f, "id", "hi"), 1830f => AssertFrame.Attribute(f, "id", "bye")); 1856f => AssertFrame.Attribute(f, "id", "bye"), 1881f => AssertFrame.Attribute(f, "id", "bye"), 1905f => AssertFrame.Attribute(f, "id", "bye")); 1928f => AssertFrame.Attribute(f, "id", "bye")); 1952f => AssertFrame.Attribute(f, "id", "bye")); 1979f => AssertFrame.Attribute(f, "id", "bye"), 1981f => AssertFrame.Attribute(f, "id", "hi"), 1982f => AssertFrame.Attribute(f, "id", "bye")); 2017f => AssertFrame.Attribute(f, "3", "see ya")); 2199frame => AssertFrame.Attribute(frame, "attr", "123", 1),
RenderTreeDiffBuilderTest.cs (4)
854AssertFrame.Attribute(referenceFrames[0], "added", "added value"); 904AssertFrame.Attribute(referenceFrames[0], "will change", "did change value"); 967AssertFrame.Attribute(referenceFrames[0], "newname", "same value"); 2358AssertFrame.Attribute(referenceFrames[0], "myattribute_final", "value", 1);
RenderTreeUpdaterTest.cs (8)
34frame => AssertFrame.Attribute(frame, valuePropName, "initial value", 2)); 62frame => AssertFrame.Attribute(frame, valuePropName, "initial value", 2)); 95frame => AssertFrame.Attribute(frame, valuePropName, "unchanged 1", 2), 98frame => AssertFrame.Attribute(frame, "unrelated prop before", "unchanged 2", 5), 99frame => AssertFrame.Attribute(frame, valuePropName, "new value", 6), 100frame => AssertFrame.Attribute(frame, "unrelated prop after", "unchanged 3", 7)); 124frame => AssertFrame.Attribute(frame, valuePropName, "new value", RenderTreeDiffBuilder.SystemAddedAttributeSequenceNumber), 182frame => AssertFrame.Attribute(frame, valuePropName, "new value", RenderTreeDiffBuilder.SystemAddedAttributeSequenceNumber),
RouteViewTest.cs (1)
82frame => AssertFrame.Attribute(frame, nameof(ComponentWithLayout.Message), "Test message", sequence: 1),