Skip to content

Commit cb3e0b0

Browse files
committed
test: 更新单元测试
1 parent b01bfa8 commit cb3e0b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/UnitTest/Components/InputTest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,13 @@ public void GroupLabel_Ok()
273273
});
274274

275275
Assert.Contains("DisplayText", cut.Markup);
276+
277+
cut.SetParametersAndRender(pb =>
278+
{
279+
pb.Add(a => a.ChildContent, builder => builder.AddContent(0, "test-child-content"));
280+
});
281+
cut.Contains("test-child-content");
282+
cut.DoesNotContain("DisplayText");
276283
}
277284

278285
[Fact]

0 commit comments

Comments
 (0)