Skip to content

Commit 92111c6

Browse files
ArgoZhangMadLongTomXUEWUQIUSHUANGice6
committed
test: 更新单元测试
Co-Authored-By: MadLongTom <[email protected]> Co-Authored-By: Frost Autumn <[email protected]> Co-Authored-By: ice6 <[email protected]>
1 parent a1fa8b0 commit 92111c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/UnitTest/Services/DrawerServiceTest.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,18 @@ public async Task Show_Ok()
3030
var button = cut.Find("button");
3131
await cut.InvokeAsync(() => button.Click());
3232

33+
option.ChildContent = null;
34+
option.Component = BootstrapDynamicComponent.CreateComponent<DialogCloseButton>();
35+
await service.Show(option);
36+
button = cut.Find("button");
37+
await cut.InvokeAsync(() => button.Click());
38+
3339
await service.Show<DrawerDemo>();
3440
button = cut.Find("button");
3541
await cut.InvokeAsync(() => button.Click());
3642

37-
await service.Show(typeof(DrawerDemo));
43+
var type = typeof(DrawerDemo);
44+
await service.Show(type);
3845
button = cut.Find("button");
3946
await cut.InvokeAsync(() => button.Click());
4047
}

0 commit comments

Comments
 (0)