public void DeleteCatalogListTest() { int maxId = -1; foreach (CreateCatalogList i in createCatalogBll.GetAllCreateCatalogArray()) { if (i.Id > maxId) { maxId = i.Id; } } if (maxId != -1) { Assert.AreEqual(true, createCatalogBll.DeleteCatalogList(maxId)); } Assert.AreEqual(false, createCatalogBll.DeleteCatalogList(-1)); }