public void TestComputeVATForInvalidOutput() { Lab2.Product product = new Lab2.Product(1, "ceapa", "de mancat", new System.DateTime(2011, 12, 13), new System.DateTime(2019, 12, 14), 15.5, 25); Assert.AreNotEqual(product.ComputeVAT(), 19, "This shouldn't be equal"); }
public void TestComputeVATGivenValidData() { Lab2.Product product = new Lab2.Product(1, "ceapa", "de mancat", new System.DateTime(2011, 12, 13), new System.DateTime(2019, 12, 14), 15.5, 25); Assert.AreEqual(product.ComputeVAT(), 19.375, "This should be equal"); }