mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-24 16:43:17 +08:00
修复:按要求将测试移至 NewUnitTest 模式 Following maintainer feedback, integrated UtilConvert tests into the existing NewUnitTest framework. 根据维护者反馈,将 UtilConvert 测试集成到现有的 NewUnitTest 框架中。 Changes / 更改: - Moved test file to UserTestCases/UnitTest/UnitUtilConvert.cs - Added UnitUtilConvert.Init() call to NewUnitTest.Init() - Uses Check.Exception() for assertions (SqlSugar pattern) - Removed standalone test file Test Coverage / 测试覆盖 (60+ tests, 349 lines): - ObjToInt: 10 tests - ObjToLong: 5 tests - ObjToString: 7 tests - ObjToDecimal: 7 tests - ObjToMoney: 5 tests - ObjToDate: 5 tests - ObjToBool: 6 tests - EqualCase: 6 tests - Edge cases: 7 tests Implementation / 实现: ✅ Integrated into NewUnitTest.Init() ✅ Uses Check.Exception() for validation ✅ Follows SqlSugar testing conventions ✅ Bilingual comments (English + Chinese)