Skip to content

Commit d8a9a9d

Browse files
committed
test: 增加单元测试
1 parent 9119551 commit d8a9a9d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/UnitTest/Components/DisplayTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ public async Task LookupService_Ok()
5959
});
6060
await Task.Delay(20);
6161
Assert.Contains("Test1,Test2", cut.Markup);
62+
63+
cut.SetParametersAndRender(pb =>
64+
{
65+
pb.Add(a => a.LookupServiceKey, null);
66+
pb.Add(a => a.Lookup, new List<SelectedItem> { new("v1", "Test3"), new("v2", "Test4") });
67+
});
68+
await Task.Delay(20);
69+
Assert.Contains("Test3,Test4", cut.Markup);
6270
}
6371

6472
[Fact]

0 commit comments

Comments
 (0)