public void addNewDiscount() { int beforeInsertion = discountsArchive.getAllDiscounts().Count; Boolean check = discountsArchive.addNewDiscount(3, 1, "", 30, DateTime.Now.AddDays(10).ToString(), ""); int afterInsertion = discountsArchive.getAllDiscounts().Count; Assert.IsTrue(check); Assert.AreEqual(beforeInsertion + 1, afterInsertion); }