Skip to content

Commit c1d214e

Browse files
committed
test: 更新单元测试
1 parent d3a2c9e commit c1d214e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/UnitTest/Components/SelectGenericTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ public async Task IsEditable_Ok()
873873
return Task.FromResult((string?)null);
874874
});
875875
});
876+
Assert.Equal("Test4", cut.Instance.Value);
876877
}
877878

878879
[Fact]
@@ -890,7 +891,7 @@ public async Task IsEditable_Generic()
890891
pb.Add(a => a.IsEditable, true);
891892
pb.Add(a => a.TextConvertToValueCallback, v =>
892893
{
893-
return Task.FromResult(new Foo() { Id = 3, Address = "Foo3" });
894+
return Task.FromResult(new Foo() { Id = 3, Address = "Foo3" })!;
894895
});
895896
});
896897

0 commit comments

Comments
 (0)