We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e4435 commit 41a861dCopy full SHA for 41a861d
test/UnitTest/Components/DialButtonTest.cs
@@ -222,6 +222,24 @@ public void ItemTemplate_Ok()
222
cut.Contains("test-fa-solid fa-cut-cut");
223
}
224
225
+ [Fact]
226
+ public void Item_ChildContent_Ok()
227
+ {
228
+ var cut = Context.RenderComponent<DialButton>(pb =>
229
230
+ pb.Add(i => i.ChildContent, new RenderFragment(pb =>
231
232
+ pb.OpenComponent<DialButtonItem>(0);
233
+ pb.AddAttribute(1, "ChildContent", new RenderFragment(pb =>
234
235
+ pb.AddContent(0, "test-ChildContent");
236
+ }));
237
+ pb.CloseComponent();
238
239
+ });
240
+ cut.Contains("test-ChildContent");
241
+ }
242
+
243
[Fact]
244
public void DialButtonItem_Ok()
245
{
0 commit comments