Skip to content

Commit d44366e

Browse files
committed
test: 增加单元测试
1 parent 0e54595 commit d44366e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/UnitTest/Components/FlipClockTest.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ public void ShowDay_Ok()
5959
cut.Contains("bb-flip-clock-list day");
6060
}
6161

62+
[Fact]
63+
public void ShowMonth_Ok()
64+
{
65+
var cut = Context.RenderComponent<FlipClock>();
66+
cut.DoesNotContain("bb-flip-clock-list month");
67+
68+
cut.SetParametersAndRender(pb =>
69+
{
70+
pb.Add(a => a.ShowMonth, true);
71+
});
72+
cut.Contains("bb-flip-clock-list month");
73+
}
74+
6275
[Fact]
6376
public async Task ViewMode_Ok()
6477
{

0 commit comments

Comments
 (0)