mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update user test case
This commit is contained in:
@@ -20,7 +20,7 @@ namespace OrmTest
|
|||||||
var x5 = db.Queryable<Order>().Select(it => DateTime.Now.DayOfWeek.ToString() ).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&& x1.First() != 366, "unit error . UCustom011");
|
||||||
Check.Exception(x2.First() != 24, "unit error . UCustom011");
|
Check.Exception(x2.First() != 24, "unit error . UCustom011");
|
||||||
Check.Exception(x3.First() != 60, "unit error . UCustom011");
|
Check.Exception(x3.First() != 60, "unit error . UCustom011");
|
||||||
Check.Exception(!(x4.First() >=60&& x4.First() <= 61), "unit error . UCustom011");
|
Check.Exception(!(x4.First() >=60&& x4.First() <= 61), "unit error . UCustom011");
|
||||||
|
@@ -20,7 +20,7 @@ namespace OrmTest
|
|||||||
var x5 = db.Queryable<Order>().Select(it =>DateTime.Now.DayOfWeek.ToString()).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&& x1.First() != 366, "unit error . UCustom011");
|
||||||
Check.Exception(x2.First() != 24, "unit error . UCustom011");
|
Check.Exception(x2.First() != 24, "unit error . UCustom011");
|
||||||
Check.Exception(x3.First() != 60, "unit error . UCustom011");
|
Check.Exception(x3.First() != 60, "unit error . UCustom011");
|
||||||
Check.Exception(!(x4.First() >=60&& x4.First() <= 61), "unit error . UCustom011");
|
Check.Exception(!(x4.First() >=60&& x4.First() <= 61), "unit error . UCustom011");
|
||||||
|
Reference in New Issue
Block a user