Skip to content

Commit b9ca1f6

Browse files
committed
test: 更新单元测试
1 parent 7f07b93 commit b9ca1f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/UnitTest/Components/LayoutTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,16 @@ public void ShowLayouSidebar_Ok()
246246
pb.Add(a => a.AdditionalAssemblies, new Assembly[] { GetType().Assembly });
247247
pb.Add(a => a.IsFullSide, true);
248248
pb.Add(a => a.ShowSplitbar, true);
249+
pb.Add(a => a.SidebarMinWidth, 100);
250+
pb.Add(a => a.SidebarMaxWidth, 300);
249251
pb.Add(a => a.Side, new RenderFragment(builder =>
250252
{
251253
builder.AddContent(0, "test");
252254
}));
253255
});
254256
cut.Contains("layout-splitebar");
257+
cut.Contains("data-bb-min=\"100\"");
258+
cut.Contains("data-bb-max=\"300\"");
255259
}
256260

257261
[Fact]

0 commit comments

Comments
 (0)