mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 12:33:44 +08:00
Update unit test
This commit is contained in:
@@ -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();
|
||||||
|
@@ -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");
|
||||||
|
Reference in New Issue
Block a user