Add unit test

This commit is contained in:
sunkaixuan 2022-11-04 13:51:01 +08:00
parent 79d9e5395f
commit 2a970922de

View File

@ -334,6 +334,18 @@ namespace OrmTest
name3 = string.Join(",", it.Child.Select(z => z.Id))
});
if (!db.DbMaintenance.IsAnyTable("order", false))
{
throw new Exception("unit error");
}
if (db.DbMaintenance.IsAnyTable("ordsafadsfasdfasfasder", false))
{
throw new Exception("unit error");
}
if (!db.DbMaintenance.IsAnyTable("Tree1", false))
{
throw new Exception("unit error");
}
}
public class UnitA001