381 references to AssertFrame
Microsoft.AspNetCore.Components.Tests (381)
CascadingParameterTest.cs (17)
43AssertFrame.Text( 93AssertFrame.Text(secondBatch.ReferenceFrames[0], "CascadingParameter=Hello; RegularParameter=Changed value"); 139AssertFrame.Text(secondBatch.ReferenceFrames[0], "CascadingParameter=Updated value; RegularParameter=Goodbye"); 283AssertFrame.Text( 427AssertFrame.Text( 435AssertFrame.Text( 474AssertFrame.Text( 510AssertFrame.Text( 548AssertFrame.Text( 590AssertFrame.Text( 610AssertFrame.Text(secondBatch.ReferenceFrames[0], "CascadingParameter=Mutated value; RegularParameter=Goodbye"); 626AssertFrame.Text(thirdBatch.ReferenceFrames[0], "CascadingParameter=Whole new object; RegularParameter=Goodbye"); 660AssertFrame.Text( 673AssertFrame.Text( 685AssertFrame.Text( 756AssertFrame.Text(firstBatch.ReferenceFrames[edit.ReferenceFrameIndex], "CascadingParameter=Hello; SingleDeliveryCascadingParameter=Initial single delivery value; RegularParameter=Initial value"); 781AssertFrame.Text(secondBatch.ReferenceFrames[0], "CascadingParameter=Hello; SingleDeliveryCascadingParameter=Initial single delivery value; RegularParameter=Changed value");
DynamicComponentTest.cs (7)
60AssertFrame.Component<TestComponent>(batch.ReferenceFrames[0], 2, 0); 61AssertFrame.Text(batch.ReferenceFrames[2], "Hello from TestComponent with IntProp=0", 0); 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); 98AssertFrame.Text(batch.ReferenceFrames[4], "Hello from TestComponent with IntProp=123", 0); 99AssertFrame.Text(batch.ReferenceFrames[5], "This is some child content", 0);
LayoutViewTest.cs (31)
53frame => AssertFrame.Text(frame, "Hello", 123), 54frame => AssertFrame.Text(frame, "Goodbye", 456)); 72frame => AssertFrame.Component<RootLayout>(frame, subtreeLength: 2, sequence: 0), 73frame => AssertFrame.Attribute(frame, nameof(LayoutComponentBase.Body), sequence: 1)); 78frame => AssertFrame.Text(frame, "RootLayout starts here", sequence: 0), 79frame => AssertFrame.Region(frame, subtreeLength: 1), // i.e., empty region 80frame => AssertFrame.Text(frame, "RootLayout ends here", sequence: 2)); 102frame => AssertFrame.Component<RootLayout>(frame, subtreeLength: 2, sequence: 0), 103frame => AssertFrame.Attribute(frame, nameof(LayoutComponentBase.Body), sequence: 1)); 108frame => AssertFrame.Text(frame, "RootLayout starts here", sequence: 0), 109frame => AssertFrame.Region(frame, subtreeLength: 3), 110frame => AssertFrame.Text(frame, "Hello", sequence: 123), 111frame => AssertFrame.Text(frame, "Goodbye", sequence: 456), 112frame => AssertFrame.Text(frame, "RootLayout ends here", sequence: 2)); 134frame => AssertFrame.Component<RootLayout>(frame, subtreeLength: 2, sequence: 0), 135frame => AssertFrame.Attribute(frame, nameof(LayoutComponentBase.Body), sequence: 1)); 140frame => AssertFrame.Text(frame, "RootLayout starts here", sequence: 0), 141frame => AssertFrame.Region(frame, subtreeLength: 3, sequence: 1), 142frame => AssertFrame.Component<NestedLayout>(frame, subtreeLength: 2, sequence: 0), 143frame => AssertFrame.Attribute(frame, nameof(LayoutComponentBase.Body), sequence: 1), 144frame => AssertFrame.Text(frame, "RootLayout ends here", sequence: 2)); 149frame => AssertFrame.Text(frame, "NestedLayout starts here", sequence: 0), 150frame => AssertFrame.Region(frame, subtreeLength: 3, sequence: 1), 151frame => AssertFrame.Text(frame, "Hello", sequence: 123), 152frame => AssertFrame.Text(frame, "Goodbye", sequence: 456), 153frame => AssertFrame.Text(frame, "NestedLayout ends here", sequence: 2)); 192AssertFrame.Text( 239AssertFrame.Component<OtherNestedLayout>( 252AssertFrame.Text( 260AssertFrame.Text( 268AssertFrame.Text(
RendererTest.cs (29)
53AssertFrame.Element(batch.ReferenceFrames[0], "my element", 2); 54AssertFrame.Text(batch.ReferenceFrames[1], "some text"); 90AssertFrame.Text( 113AssertFrame.Text(batch.ReferenceFrames[0], "Initial message"); 126AssertFrame.Text(secondBatch.ReferenceFrames[0], "Modified message"); 158AssertFrame.Text(batch.ReferenceFrames[0], "Render 1"); 171AssertFrame.Text(secondBatch.ReferenceFrames[0], "Render 2"); 202AssertFrame.Element(create.ReferenceFrames[0], "p", 2); 203AssertFrame.Text(create.ReferenceFrames[1], "5"); 224AssertFrame.Text(update.ReferenceFrames[0], (5 - i).ToString(CultureInfo.InvariantCulture)); 295AssertFrame.Text(batch.ReferenceFrames[0], "Hello"); 311AssertFrame.Text(batch2.ReferenceFrames[0], "Goodbye"); 2016AssertFrame.Text(renderer1Batch.ReferenceFrames[edit.ReferenceFrameIndex], 2026AssertFrame.Text(renderer2Batch.ReferenceFrames[edit.ReferenceFrameIndex], 2065AssertFrame.Text(batch.ReferenceFrames[0], "Modified message"); 2141AssertFrame.Text(renderer.Batches[1].ReferenceFrames[0], "second"); 2179AssertFrame.Attribute(renderer.Batches[1].ReferenceFrames[0], "class", "second"); 2886AssertFrame.Text( 2898AssertFrame.Text( 2910AssertFrame.Text( 2947AssertFrame.Text(batch1.ReferenceFrames[edit1.ReferenceFrameIndex], 2956AssertFrame.Text(batch2.ReferenceFrames[edit2.ReferenceFrameIndex], 2990AssertFrame.Component<ReRendersParentComponent>( 2996AssertFrame.Text( 3006AssertFrame.Text(batch.ReferenceFrames[diff2edit.ReferenceFrameIndex], 3014AssertFrame.Text(batch.ReferenceFrames[diff3edit.ReferenceFrameIndex], 3299AssertFrame.Attribute(latestBatch.ReferenceFrames[edit.ReferenceFrameIndex], 4362AssertFrame.Attribute(attributeFrame, "ontestevent", typeof(Action<ChangeEventArgs>)); 4414AssertFrame.Attribute(attributeFrame, "ontestevent", typeof(Action<ChangeEventArgs>));
Rendering\RenderTreeBuilderTest.cs (193)
40frame => AssertFrame.Text(frame, "First item"), 41frame => AssertFrame.Text(frame, string.Empty), 42frame => AssertFrame.Text(frame, "Second item")); 60frame => AssertFrame.Element(frame, "some elem", 3), 61frame => AssertFrame.Markup(frame, "Blah"), 62frame => AssertFrame.Markup(frame, string.Empty)); 81frame => AssertFrame.Markup(frame, "Some markup"), 82frame => AssertFrame.Markup(frame, string.Empty)); 103frame => AssertFrame.Markup(frame, "Test nullable Markup"), 104frame => AssertFrame.Markup(frame, string.Empty)); 119frame => AssertFrame.Markup(frame, string.Empty)); 136frame => AssertFrame.Text(frame, "1234"), 137frame => AssertFrame.Text(frame, string.Empty)); 151AssertFrame.Element(frame, "my element", 0); 168AssertFrame.Element(frames.Array[1], "my element", 1); 187AssertFrame.Element(frames.Array[0], "my element", 3); 216frame => AssertFrame.Text(frame, "standalone text 1"), 217frame => AssertFrame.Element(frame, "root", 10), 218frame => AssertFrame.Text(frame, "root text 1"), 219frame => AssertFrame.Text(frame, "root text 2"), 220frame => AssertFrame.Element(frame, "child", 5), 221frame => AssertFrame.Text(frame, "child text"), 222frame => AssertFrame.Element(frame, "grandchild", 3), 223frame => AssertFrame.Text(frame, "grandchild text 1"), 224frame => AssertFrame.Text(frame, "grandchild text 2"), 225frame => AssertFrame.Text(frame, "root text 3"), 226frame => AssertFrame.Element(frame, "child 2", 1), 227frame => AssertFrame.Text(frame, "standalone text 2")); 249frame => AssertFrame.Element(frame, "myelement", 6), 250frame => AssertFrame.Attribute(frame, "attribute1", "value 1"), 251frame => AssertFrame.Attribute(frame, "attribute2", "123"), 252frame => AssertFrame.Element(frame, "child", 3), 253frame => AssertFrame.Attribute(frame, "childevent", eventHandler), 254frame => AssertFrame.Text(frame, "some text")); 272frame => AssertFrame.Element(frame, "myelement", 1)); 311frame => AssertFrame.Element(frame, "myelement", 5), 312frame => AssertFrame.Attribute(frame, "attribute1", "test1"), 313frame => AssertFrame.Attribute(frame, "attribute3", eventHandler), 314frame => AssertFrame.Attribute(frame, "ATTRIBUTE2", true), 315frame => AssertFrame.Attribute(frame, "attribute7", "the end")); 345frame => AssertFrame.Element(frame, "myelement", 4), 346frame => AssertFrame.Attribute(frame, "attribute1", "value2"), 347frame => AssertFrame.Region(frame, 2, 2), 348frame => AssertFrame.Element(frame, "child", 1, 3)); 424AssertFrame.Attribute(frame, attribute.Key, attribute.Value); 618frame => AssertFrame.Element(frame, "parent", 6), 619frame => AssertFrame.Component<TestComponent>(frame), 620frame => AssertFrame.Attribute(frame, "child1attribute1", "A"), 621frame => AssertFrame.Attribute(frame, "child1attribute2", "B"), 622frame => AssertFrame.Component<TestComponent>(frame), 623frame => AssertFrame.Attribute(frame, "child2attribute", "C")); 646frame => AssertFrame.Element(frame, "parent", 6), 647frame => AssertFrame.Component<TestComponent>(frame), 648frame => AssertFrame.Attribute(frame, "child1attribute1", "A"), 649frame => AssertFrame.Attribute(frame, "child1attribute2", "B"), 650frame => AssertFrame.Component<TestComponent>(frame), 651frame => AssertFrame.Attribute(frame, "child2attribute", "C")); 674frame => AssertFrame.Element(frame, "parent", 6, 10), 675frame => AssertFrame.Region(frame, 5, 11), 676frame => AssertFrame.Text(frame, "Hello", 3), 677frame => AssertFrame.Region(frame, 2, 4), 678frame => AssertFrame.Element(frame, "another", 1, 3), 679frame => AssertFrame.Text(frame, "Goodbye", 6)); 702frame => AssertFrame.Element(frame, "parent", 5, 10), 703frame => AssertFrame.Region(frame, 4, 11), 704frame => AssertFrame.Text(frame, "Hello from the fragment", 0), 705frame => AssertFrame.Element(frame, "Fragment element", 2, 1), 706frame => AssertFrame.Text(frame, "Some text", 2)); 725frame => AssertFrame.Element(frame, "myelement", 4, 0), 726frame => AssertFrame.Attribute(frame, "attribute2", "123", 1), 727frame => AssertFrame.ElementReferenceCapture(frame, referenceCaptureAction, 2), 728frame => AssertFrame.Text(frame, "some text", 3)); 793frame => AssertFrame.Element(frame, "myelement", 3), 794frame => AssertFrame.ElementReferenceCapture(frame, referenceCaptureAction1), 795frame => AssertFrame.ElementReferenceCapture(frame, referenceCaptureAction2)); 814frame => AssertFrame.Component<TestComponent>(frame, 4, 0), 815frame => AssertFrame.Attribute(frame, "attribute2", 123, 1), 816frame => AssertFrame.ComponentReferenceCapture(frame, myAction, 2), 817frame => AssertFrame.Text(frame, "some text", 3)); 882frame => AssertFrame.Component<TestComponent>(frame, 3), 883frame => AssertFrame.ComponentReferenceCapture(frame, referenceCaptureAction1), 884frame => AssertFrame.ComponentReferenceCapture(frame, referenceCaptureAction2)); 918frame => AssertFrame.Element(frame, "elem", 2, 0), 919frame => AssertFrame.Attribute(frame, "attr", true, 1)); 936frame => AssertFrame.Element(frame, "elem", 1, 0)); 955frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 956frame => AssertFrame.Attribute(frame, "attr", value, 1)); 975frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 976frame => AssertFrame.Attribute(frame, "attr", value, 1)); 993frame => AssertFrame.Element(frame, "elem", 2, 0), 994frame => AssertFrame.Attribute(frame, "attr", "hi", 1)); 1011frame => AssertFrame.Element(frame, "elem", 1, 0)); 1030frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1031frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1050frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1051frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1070frame => AssertFrame.Element(frame, "elem", 2, 0), 1071frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1088frame => AssertFrame.Element(frame, "elem", 1, 0)); 1107frame => AssertFrame.Element(frame, "elem", 2, 0), 1108frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1125frame => AssertFrame.Element(frame, "elem", 1, 0)); 1149frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1150frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1168frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1169frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1187frame => AssertFrame.Element(frame, "elem", 2, 0), 1188frame => AssertFrame.Attribute(frame, "attr", callback.Delegate, 1)); 1206frame => AssertFrame.Element(frame, "elem", 1, 0)); 1225frame => AssertFrame.Element(frame, "elem", 2, 0), 1226frame => AssertFrame.Attribute(frame, "attr", callback, 1)); 1245frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1246frame => AssertFrame.Attribute(frame, "attr", callback, 1)); 1265frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1266frame => AssertFrame.Attribute(frame, "attr", callback, 1)); 1284frame => AssertFrame.Element(frame, "elem", 2, 0), 1285frame => AssertFrame.Attribute(frame, "attr", callback.Delegate, 1)); 1303frame => AssertFrame.Element(frame, "elem", 1, 0)); 1322frame => AssertFrame.Element(frame, "elem", 2, 0), 1323frame => AssertFrame.Attribute(frame, "attr", new EventCallback(callback.Receiver, callback.Delegate), 1)); 1342frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1343frame => AssertFrame.Attribute(frame, "attr", callback, 1)); 1362frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1363frame => AssertFrame.Attribute(frame, "attr", callback, 1)); 1380frame => AssertFrame.Element(frame, "elem", 2, 0), 1381frame => AssertFrame.Attribute(frame, "attr", true, 1)); 1398frame => AssertFrame.Element(frame, "elem", 1, 0)); 1417frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1418frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1435frame => AssertFrame.Element(frame, "elem", 2, 0), 1436frame => AssertFrame.Attribute(frame, "attr", "hi", 1)); 1453frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1454frame => AssertFrame.Attribute(frame, "attr", "hi", 1)); 1473frame => AssertFrame.Element(frame, "elem", 2, 0), 1474frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1493frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1494frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1513frame => AssertFrame.Element(frame, "elem", 2, 0), 1514frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1533frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1534frame => AssertFrame.Attribute(frame, "attr", value, 1)); 1552frame => AssertFrame.Element(frame, "elem", 2, 0), 1553frame => AssertFrame.Attribute(frame, "attr", callback.Delegate, 1)); 1571frame => AssertFrame.Element(frame, "elem", 1, 0)); 1590frame => AssertFrame.Element(frame, "elem", 2, 0), 1591frame => AssertFrame.Attribute(frame, "attr", callback, 1)); 1610frame => AssertFrame.Component<TestComponent>(frame, 2, 0), 1611frame => AssertFrame.Attribute(frame, "attr", callback, 1)); 1629frame => AssertFrame.Element(frame, "elem", 2, 0), 1630frame => AssertFrame.Attribute(frame, "attr", callback.Delegate, 1)); 1648frame => AssertFrame.Element(frame, "elem", 1, 0)); 1667frame => AssertFrame.Element(frame, "elem", 2, 0), 1668frame => AssertFrame.Attribute(frame, "attr", new EventCallback(callback.Receiver, callback.Delegate), 1)); 1685frame => AssertFrame.Element(frame, "elem", 1, 0)); 1707AssertFrame.Element(frame, "elem", 3, 0); 1710frame => AssertFrame.Attribute(frame, "attribute before", "before value", 1), 1711frame => AssertFrame.Attribute(frame, "attribute after", "after value", 2)); 1733AssertFrame.Component<TestComponent>(frame, 3, 0); 1736frame => AssertFrame.Attribute(frame, "param before", 123, 1), 1737frame => AssertFrame.Attribute(frame, "param after", 456, 2)); 1786AssertFrame.Element(frame, "elem", 1, 0); 1807AssertFrame.Component<TestComponent>(frame, 1, 0); 1828f => AssertFrame.Element(f, "div", 3, 0), 1829f => AssertFrame.Attribute(f, "id", "hi"), 1830f => AssertFrame.Attribute(f, "id", "bye")); 1855f => AssertFrame.Element(f, "div", 3, 0), 1856f => AssertFrame.Attribute(f, "id", "bye"), 1857f => AssertFrame.ElementReferenceCapture(f, capture)); 1880f => AssertFrame.Element(f, "div", 3, 0), 1881f => AssertFrame.Attribute(f, "id", "bye"), 1882f => AssertFrame.Text(f, "hey")); 1904f => AssertFrame.Element(f, "div", 2, 0), 1905f => AssertFrame.Attribute(f, "id", "bye")); 1927f => AssertFrame.Component<TestComponent>(f, 2, 0), 1928f => AssertFrame.Attribute(f, "id", "bye")); 1951f => AssertFrame.Component<TestComponent>(f, 2, 0), 1952f => AssertFrame.Attribute(f, "id", "bye")); 1978f => AssertFrame.Element(f, "div", 5, 0), 1979f => AssertFrame.Attribute(f, "id", "bye"), 1980f => AssertFrame.Element(f, "strong", 3), 1981f => AssertFrame.Attribute(f, "id", "hi"), 1982f => AssertFrame.Attribute(f, "id", "bye")); 2016f => AssertFrame.Element(f, "div", 2, 0), 2017f => AssertFrame.Attribute(f, "3", "see ya")); 2098AssertFrame.Component<TestComponent>(frame, 1, 0); 2121AssertFrame.Component<TestComponent>(frame, 3, 0); 2124frame => AssertFrame.Attribute(frame, "param", 123, 1), 2125frame => AssertFrame.ComponentRenderMode(frame, renderMode)); 2160AssertFrame.Component<TestComponent>(frame, 2, 0); 2163frame => AssertFrame.Attribute(frame, "param", 123, 1)); 2198frame => AssertFrame.Element(frame, "elem", 3, 0), 2199frame => AssertFrame.Attribute(frame, "attr", "123", 1), 2200frame => AssertFrame.NamedEvent(frame, "myeventtype", "my event name"));
RenderTreeDiffBuilderTest.cs (40)
89AssertFrame.Text(referenceFrames[0], "text1", 1); 600AssertFrame.Text(referenceFrames[0], "x", 11); 601AssertFrame.Text(referenceFrames[1], "x", 12); 650AssertFrame.Text(referenceFrames[0], "x", 10); 651AssertFrame.Text(referenceFrames[1], "x", 11); 680AssertFrame.Text(referenceFrames[0], "x", 10); 681AssertFrame.Text(referenceFrames[1], "x", 11); 854AssertFrame.Attribute(referenceFrames[0], "added", "added value"); 904AssertFrame.Attribute(referenceFrames[0], "will change", "did change value"); 934AssertFrame.Attribute(referenceFrames[0], "onbar", addedHandler); 967AssertFrame.Attribute(referenceFrames[0], "newname", "same value"); 997frame => AssertFrame.Attribute(frame, "attr1", 0)); 1028frame => AssertFrame.Attribute(frame, "attr2", 0)); 1059frame => AssertFrame.Attribute(frame, "attr3", 0)); 1089frame => AssertFrame.Attribute(frame, "attr1", 1)); 1120frame => AssertFrame.Attribute(frame, "attr2", 2)); 1151frame => AssertFrame.Attribute(frame, "attr3", 3)); 1354AssertFrame.Text(referenceFrames[0], "grandchild new text", 13); 1391AssertFrame.Text(referenceFrames[0], "Text that has changed", 11); 1417AssertFrame.Text(referenceFrames[0], "text2modified", 11); 1443frame => AssertFrame.Element(frame, "root", 3, 1), 1444frame => AssertFrame.Region(frame, 2, 2), 1445frame => AssertFrame.Text(frame, "text1")); 1471AssertFrame.Text( 1477AssertFrame.Text( 1535AssertFrame.Text( 1542AssertFrame.Text( 1580AssertFrame.ComponentWithInstance<FakeComponent>(renderBatch.ReferenceFrames.Array[0], 0, null, 12); 1581AssertFrame.ComponentWithInstance<FakeComponent2>(renderBatch.ReferenceFrames.Array[1], 1, null, 13); 1666AssertFrame.Attribute(oldAttributeFrame, "ontest", retainedHandler); 1667AssertFrame.Attribute(newAttributeFrame, "ontest", retainedHandler); 1693AssertFrame.Attribute(oldAttributeFrame, "ontest", retainedHandler); 1694AssertFrame.Attribute(newAttributeFrame, "ontest", retainedHandler); 1864frame => AssertFrame.Element(frame, "My element", 3), 1867AssertFrame.ElementReferenceCapture(frame, capture1); 1872AssertFrame.ElementReferenceCapture(frame, capture2); 1936AssertFrame.Component<FakeComponent>(frame, 3, 0); 1939frame => AssertFrame.ComponentReferenceCapture(frame, assigner1, 1), 1940frame => AssertFrame.ComponentReferenceCapture(frame, assigner2, 2)); 2358AssertFrame.Attribute(referenceFrames[0], "myattribute_final", "value", 1);
RenderTreeUpdaterTest.cs (25)
32frame => AssertFrame.Element(frame, "elem", 3, 0), 33frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1), 34frame => AssertFrame.Attribute(frame, valuePropName, "initial value", 2)); 60frame => AssertFrame.Element(frame, "elem", 3, 0), 61frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1), 62frame => AssertFrame.Attribute(frame, valuePropName, "initial value", 2)); 93frame => AssertFrame.Element(frame, "elem", 3, 0), 94frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1), 95frame => AssertFrame.Attribute(frame, valuePropName, "unchanged 1", 2), 96frame => AssertFrame.Element(frame, "elem", 5, 3), 97frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 4), 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)); 123frame => AssertFrame.Element(frame, "elem", 3, 0), 124frame => AssertFrame.Attribute(frame, valuePropName, "new value", RenderTreeDiffBuilder.SystemAddedAttributeSequenceNumber), 125frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1)); 148frame => AssertFrame.Element(frame, "elem", 2, 0), 149frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 1)); 178frame => AssertFrame.Element(frame, "grandparent", 6, 0), 179frame => AssertFrame.Region(frame, 5, 1), 180frame => AssertFrame.Element(frame, "sibling before", 1, 2), 181frame => AssertFrame.Element(frame, "elem with handler", 3, 3), 182frame => AssertFrame.Attribute(frame, valuePropName, "new value", RenderTreeDiffBuilder.SystemAddedAttributeSequenceNumber), 183frame => AssertFrame.Attribute(frame, "eventname", v => Assert.IsType<Action>(v), 4));
RouteViewTest.cs (20)
64frame => AssertFrame.Component<LayoutView>(frame, subtreeLength: 3, sequence: 0), 65frame => AssertFrame.Attribute(frame, nameof(LayoutView.Layout), (object)typeof(TestLayout), sequence: 1), 66frame => AssertFrame.Attribute(frame, nameof(LayoutView.ChildContent), sequence: 2)); 72frame => AssertFrame.Component<TestLayout>(frame, subtreeLength: 2, sequence: 0), 73frame => AssertFrame.Attribute(frame, nameof(LayoutComponentBase.Body), sequence: 1)); 79frame => AssertFrame.Text(frame, "Layout starts here", sequence: 0), 80frame => AssertFrame.Region(frame, subtreeLength: 3), 81frame => AssertFrame.Component<ComponentWithLayout>(frame, sequence: 0, subtreeLength: 2), 82frame => AssertFrame.Attribute(frame, nameof(ComponentWithLayout.Message), "Test message", sequence: 1), 83frame => AssertFrame.Text(frame, "Layout ends here", sequence: 2)); 89frame => AssertFrame.Text(frame, "Hello from the page with message 'Test message'", sequence: 0)); 114frame => AssertFrame.Component<LayoutView>(frame, subtreeLength: 3, sequence: 0), 115frame => AssertFrame.Attribute(frame, nameof(LayoutView.Layout), (object)typeof(OtherLayout), sequence: 1), 116frame => AssertFrame.Attribute(frame, nameof(LayoutView.ChildContent), sequence: 2)); 137frame => AssertFrame.Component<LayoutView>(frame, subtreeLength: 3, sequence: 0), 138frame => AssertFrame.Attribute(frame, nameof(LayoutView.Layout), (object)null, sequence: 1), 139frame => AssertFrame.Attribute(frame, nameof(LayoutView.ChildContent), sequence: 2)); 161frame => AssertFrame.Component<LayoutView>(frame, subtreeLength: 3, sequence: 0), 162frame => AssertFrame.Attribute(frame, nameof(LayoutView.Layout), (object)typeof(TestLayout), sequence: 1), 163frame => AssertFrame.Attribute(frame, nameof(LayoutView.ChildContent), sequence: 2));
src\Components\Shared\test\AssertFrame.cs (19)
23AssertFrame.Sequence(frame, sequence); 31AssertFrame.Sequence(frame, sequence); 39AssertFrame.Sequence(frame, sequence); 46AssertFrame.Sequence(frame, sequence); 51AssertFrame.Attribute(frame, attributeName, sequence); 57AssertFrame.Attribute(frame, attributeName, sequence); 63AssertFrame.Attribute(frame, attributeName, sequence); 69AssertFrame.Attribute(frame, attributeName, sequence); 75AssertFrame.Attribute(frame, attributeName, sequence); 92AssertFrame.Sequence(frame, sequence); 97AssertFrame.Component<T>(frame, subtreeLength, sequence); 106AssertFrame.Sequence(frame, sequence); 112AssertFrame.Sequence(frame, sequence); 119AssertFrame.Sequence(frame, sequence); 127AssertFrame.Sequence(frame, sequence); 134AssertFrame.Sequence(frame, sequence); 141AssertFrame.Sequence(frame, sequence); 148AssertFrame.Sequence(frame, 0); 156AssertFrame.Sequence(frame, 0);