Skip to content

Commit 6748605

Browse files
committed
test: 更新单元测试
1 parent 7327b8b commit 6748605

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/UnitTest/Components/ModalTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public void IsBackdrop_Ok()
1818
pb.Add(m => m.IsFade, false);
1919
});
2020
Assert.DoesNotContain("static", cut.Markup);
21+
Assert.DoesNotContain("modal fade", cut.Markup);
2122

2223
cut.SetParametersAndRender(pb =>
2324
{
@@ -34,6 +35,7 @@ public void Toggle_Ok()
3435
pb.AddChildContent<ModalDialog>();
3536
});
3637
cut.InvokeAsync(async () => await cut.Instance.Toggle());
38+
Assert.Contains("modal fade", cut.Markup);
3739
Assert.Contains("modal-dialog", cut.Markup);
3840
}
3941

0 commit comments

Comments
 (0)