Skip to content

Commit f2996ab

Browse files
committed
test: 增加单元测试
1 parent 3b2cece commit f2996ab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/UnitTest/Components/DrawerTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,16 @@ public void Position_Ok()
161161
cut.Contains("--bb-drawer-position: absolute;");
162162
}
163163

164+
[Fact]
165+
public void ZIndex_Ok()
166+
{
167+
var cut = Context.RenderComponent<Drawer>(builder =>
168+
{
169+
builder.Add(a => a.ZIndex, 1055);
170+
});
171+
cut.Contains("--bb-drawer-zindex: 1055;");
172+
}
173+
164174
[Fact]
165175
public void IsKeyboard_Ok()
166176
{

0 commit comments

Comments
 (0)