Skip to content

Commit

Permalink
test: 更新单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Feb 25, 2024
1 parent 5e823b5 commit 2d7624c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,20 +336,6 @@ private async Task OnClickSidebarItem(DateTimeRangeSidebarItem item)
}
}

private string GetValueString(DateTime value)
{
string? ret;
//if (ViewMode == DatePickerViewMode.DateTime)
//{
// ret = value.ToString(DateTimeFormat);
//}
//else
//{
ret = value.ToString(DateFormat);
//}
return ret;
}

/// <summary>
/// 点击 清除按钮调用此方法
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion test/UnitTest/Components/DateTimePickerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ await cut.InvokeAsync(() =>
cut.SetParametersAndRender(pb =>
{
pb.Add(a => a.ViewMode, DatePickerViewMode.Date);
pb.Add(a => a.DateFormat, "MM/dd/yyyy HH:mm:ss");
pb.Add(a => a.DateTimeFormat, "MM/dd/yyyy HH:mm:ss");
});
await cut.InvokeAsync(() =>
{
Expand Down

0 comments on commit 2d7624c

Please sign in to comment.