Browse Source

Update unit test

pull/30/head
sunkaixuan 2 years ago
parent
commit
7b561b8af0
  1. 2
      Src/Asp.Net/MySqlTest/UnitTest/UCustom20.cs
  2. 2
      Src/Asp.Net/SqliteTest/UnitTest/UCustom01.cs

2
Src/Asp.Net/MySqlTest/UnitTest/UCustom20.cs

@ -40,7 +40,7 @@ namespace OrmTest
.Where(x => x.IpfCode == "" && x.PmId == pm1.Id)
.Select(x => SqlFunc.AggregateSum(SqlFunc.ToDecimal(x.SbrAmount))))
}).ToSqlString();
if (!sql.Contains("`bil_payment` pm1"))
if (!sql.Contains("`bil_payment` `pm1`"))
{
throw new Exception("unit error");
}

2
Src/Asp.Net/SqliteTest/UnitTest/UCustom01.cs

@ -56,7 +56,7 @@ namespace OrmTest
.Having(cs => cs.PmAmount != 0)
.ToSql();
if (!sql.Key.Contains("`bil_costshare` cs"))
if (!sql.Key.Contains("`bil_costshare` `cs`"))
{
throw new Exception("unit error");
}

Loading…
Cancel
Save