mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-12-26 16:55:50 +08:00
Tk (#1)
* <chore> * 1.0.7 * <adjust> * <chore> * <chore> * <refactor> * <doc> * <doc> * <feat> + Unicode,UnicodeDe * <revert> * <fix> * bugfix * <feat> 从资源文件读取Description * <feat> 从资源文件读取Description-可继承 * <fix> 将一个对象序列化成json文本 * <chore> * 调整一下日志格式 * feat: * 泛型特性本地化资源描述 * 添加测试项目 * <chore> * feat: enum、string * feat: long 类型增加rand方法 * feat: ToInvString * fix: ToInvString * fix: ToInvString * fix: ParameterFormat bug * [BLD] [SKIP CI]
This commit is contained in:
36
src/NSExt.Tests/TestCase.cs
Normal file
36
src/NSExt.Tests/TestCase.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
namespace NSExt.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// 测试用例
|
||||
/// </summary>
|
||||
public class TestCase
|
||||
{
|
||||
// private readonly ITestOutputHelper _testOutputHelper;
|
||||
//
|
||||
// public TestCase(ITestOutputHelper testOutputHelper)
|
||||
// {
|
||||
// _testOutputHelper = testOutputHelper;
|
||||
// }
|
||||
//
|
||||
// public enum MyEnum1
|
||||
// {
|
||||
// [ResourceDescription<TestCase>(nameof(Description))]
|
||||
// Online = 1
|
||||
//
|
||||
// , Offline = 2
|
||||
// }
|
||||
//
|
||||
// public static string Description { get; set; } = "123";
|
||||
//
|
||||
// /// <summary>
|
||||
// /// Case1
|
||||
// /// </summary>
|
||||
// [Fact]
|
||||
// public void Case1()
|
||||
// {
|
||||
// var test = MyEnum1.Online.ResDesc<TestCase>();
|
||||
//
|
||||
// _testOutputHelper.WriteLine(test);
|
||||
// Assert.True(test is not null);
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user