Пример #1
0
 public void TestLogDAO_GetAllLog()
 {
     logDAO.InsertListLog(logModels);
     Assert.AreEqual(2, logDAO.GetAllLog().Count); //如果等于0,查出一个空的List<LogModel>
     Assert.AreEqual(logModels[0].Id, logDAO.GetAllLog()[0].Id);
     logDAO.DeleteLogsBySite(88);                  //清除插入数据
 }
 public void TestLogDAO_GetAllLog()
 {
     Assert.AreNotEqual(0, logDAO.GetAllLog().Count);//如果等于0,查出一个空的List<LogModel>
 }