Skip to content

Commit ca2b51a

Browse files
committed
test: 更新单元测试
1 parent 2e49c84 commit ca2b51a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/UnitTest/Components/LayoutTest.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@ public async Task TabStyle_Ok()
9292
Assert.True(show);
9393
}
9494

95+
[Fact]
96+
public void ShowTabInHeader_Ok()
97+
{
98+
var cut = Context.RenderComponent<Layout>(pb =>
99+
{
100+
pb.Add(a => a.UseTabSet, true);
101+
pb.Add(a => a.ShowTabInHeader, true);
102+
pb.Add(a => a.Header, CreateHeader());
103+
});
104+
cut.Contains("tabs tabs-chrome");
105+
}
106+
95107
[Fact]
96108
public void ShowFooter_OK()
97109
{

0 commit comments

Comments
 (0)