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