Update unit test

This commit is contained in:
sunkaixuan
2022-03-24 11:20:03 +08:00
parent d98ca10359
commit f141854319
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ namespace OrmTest
} }
public static void Init() public static void Init()
{ {
UCustom011.Init();
UnitCustom01.Init(); UnitCustom01.Init();
UCustom06.Init(); UCustom06.Init();
Bulk(); Bulk();

View File

@@ -17,6 +17,7 @@ namespace OrmTest
var x2 = db.Queryable<Order>().Select(it => (SqlFunc.GetDate() - SqlFunc.GetDate().AddDays(-1)).TotalHours).ToList(); var x2 = db.Queryable<Order>().Select(it => (SqlFunc.GetDate() - SqlFunc.GetDate().AddDays(-1)).TotalHours).ToList();
var x3 = db.Queryable<Order>().Select(it => (SqlFunc.GetDate() - SqlFunc.GetDate().AddHours(-1)).TotalMinutes).ToList(); var x3 = db.Queryable<Order>().Select(it => (SqlFunc.GetDate() - SqlFunc.GetDate().AddHours(-1)).TotalMinutes).ToList();
var x4 = db.Queryable<Order>().Select(it => (SqlFunc.GetDate() - SqlFunc.GetDate().AddMinutes(-1)).TotalSeconds).ToList(); var x4 = db.Queryable<Order>().Select(it => (SqlFunc.GetDate() - SqlFunc.GetDate().AddMinutes(-1)).TotalSeconds).ToList();
var x5 = db.Queryable<Order>().Select(it => DateTime.Now.DayOfWeek.ToString() ).ToList();
if (x1.Any()) if (x1.Any())
{ {
Check.Exception(x1.First()!=365, "unit error . UCustom011"); Check.Exception(x1.First()!=365, "unit error . UCustom011");