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