示例#1
0
 public void TestIsValidGivenEndDateBefortToday()
 {
     Lab2.Product product = new Lab2.Product(1, "ceapa", "de mancat", new System.DateTime(2011, 12, 13), new System.DateTime(2017, 12, 14), 20, 30);
     Assert.AreEqual(product.IsValid(), false, "This should be false");
 }
示例#2
0
 public void TestIsValidGivenCorrectData()
 {
     Lab2.Product product = new Lab2.Product(1, "ceapa", "de mancat", new System.DateTime(2011, 12, 13), new System.DateTime(2019, 12, 14), 20, 30);
     Assert.AreEqual(product.IsValid(), true, "This should be true");
 }