Skip to content

Commit c2c2e85

Browse files
committed
test: 更新单元测试
1 parent 3dd7acc commit c2c2e85

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/UnitTest/Components/LightTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ public class LightTest : BootstrapBlazorTestBase
1111
public void IsFlash_Ok()
1212
{
1313
var cut = Context.RenderComponent<Light>(builder => builder.Add(s => s.IsFlash, true));
14-
Assert.Contains("flash", cut.Markup);
14+
Assert.Contains("light flash", cut.Markup);
15+
Assert.DoesNotContain("is-flash-flat", cut.Markup);
1516

1617
cut.SetParametersAndRender(pb =>
1718
{
1819
pb.Add(a => a.IsFlat, true);
1920
});
20-
Assert.DoesNotContain("flash", cut.Markup);
21+
Assert.DoesNotContain("light flash", cut.Markup);
2122
Assert.Contains("is-flat", cut.Markup);
23+
Assert.Contains("is-flat-flash", cut.Markup);
2224
}
2325

2426
[Fact]

0 commit comments

Comments
 (0)