Skip to content

Commit

Permalink
test: 增加单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Feb 21, 2025
1 parent d2ee4b5 commit 36905f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/UnitTest/Components/DateTimeRangeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -666,4 +666,14 @@ public async Task ViewMode_Month()
await cut.InvokeAsync(() => cells[0].Click());
await cut.InvokeAsync(() => cells[1].Click());
}

[Fact]
public async Task TriggerHideCallback_Ok()
{
var cut = Context.RenderComponent<DateTimeRange>(pb =>
{
pb.Add(a => a.Value, new DateTimeRangeValue());
});
await cut.InvokeAsync(() => cut.Instance.TriggerHideCallback());
}
}

0 comments on commit 36905f6

Please sign in to comment.