Ejemplo n.º 1
0
 public void TestComputeVATForInvalidOutput()
 {
     Lab3NS.Product product = new Lab3NS.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");
 }
Ejemplo n.º 2
0
 public void TestComputeVATGivenValidData()
 {
     Lab3NS.Product product = new Lab3NS.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");
 }