We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b2e42d commit defebe6Copy full SHA for defebe6
test/UnitTest/Utils/UtilityTest.cs
@@ -114,7 +114,7 @@ public void GetSortListFunc_Ok()
114
[Fact]
115
public void GetPlaceHolder_Ok()
116
{
117
- var ph = Utility.GetPlaceHolder(typeof(Foo), "Name");
+ var ph = Utility.GetPlaceHolder<Foo>("Name");
118
Assert.Equal("不可为空", ph);
119
120
// 动态类型
@@ -353,7 +353,7 @@ public void GetDisplayName_Ok()
353
dn = Utility.GetDisplayName<TestEnum>(nameof(TestEnum.Address));
354
Assert.Equal("Test-Enum-Address", dn);
355
356
- dn = Utility.GetDisplayName(typeof(Nullable<TestEnum>), nameof(TestEnum.Name));
+ dn = Utility.GetDisplayName<TestEnum?>(nameof(TestEnum.Name));
357
Assert.Equal("Test-Enum-Name", dn);
358
}
359
0 commit comments