Skip to content

Commit 72afd70

Browse files
committed
test: 更新单元测试
1 parent a1be14f commit 72afd70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/UnitTest/Components/DialogCloseButtonTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ public void Icon_Ok()
1212
{
1313
var cut = Context.RenderComponent<DialogCloseButton>();
1414
Assert.Equal("fa-solid fa-xmark", cut.Instance.Icon);
15+
cut.Contains("fa-solid fa-xmark");
1516

1617
cut.SetParametersAndRender(pb => pb.Add(p => p.Icon, "test-icon"));
1718
Assert.Equal("test-icon", cut.Instance.Icon);
19+
cut.Contains("test-icon");
1820
}
1921
}

0 commit comments

Comments
 (0)