Add unit test

This commit is contained in:
sunkaixuan
2022-10-16 23:41:22 +08:00
parent 1a013f8e40
commit d72d415179

View File

@@ -289,6 +289,19 @@ namespace OrmTest
{ {
throw new Exception("unit error"); throw new Exception("unit error");
} }
var xxx4 = db.Queryable<Tree1>()
.Includes(it => it.Child)
.OrderByDescending(x => x.Id)
.ToList(it => new ViewTree1
{
Count=1
});
if (xxx4[1].Child.Count() == 0)
{
throw new Exception("unit error");
}
} }
public class UnitA001 public class UnitA001