Skip to content

Commit 19f7dfa

Browse files
committed
test: 增加单元测试
1 parent 2561de8 commit 19f7dfa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/UnitTest/Components/DateTimePickerTest.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ namespace UnitTest.Components;
1010
public class DateTimePickerTest : BootstrapBlazorTestBase
1111
{
1212
#region DateTimePicker
13+
[Fact]
14+
public void Color_Ok()
15+
{
16+
var cut = Context.RenderComponent<DateTimePicker<DateTime>>(pb =>
17+
{
18+
pb.Add(a => a.AutoToday, true);
19+
pb.Add(a => a.Value, DateTime.MinValue);
20+
pb.Add(a => a.Color, Color.Primary);
21+
});
22+
cut.Contains("border-primary");
23+
}
24+
1325
[Fact]
1426
public void AutoToday_DateTime()
1527
{

0 commit comments

Comments
 (0)