public void Edit02Test() { ProductController target = new ProductController(new TestCategoryRepository(), new TestProductRepository(), new TestOrderRepository()); Nullable<int> number =-1; int productID = 0; string txID = string.Empty; ViewResult actual; actual = target.Edit(number, productID, txID) as ViewResult; Assert.IsNotNull(actual.ViewData.ModelState["number"]); }
public void Edit12Test() { ProductController target = new ProductController(new TestCategoryRepository(), new TestProductRepository(), new TestOrderRepository()); int productId = -1; ViewResult actual; actual = target.Edit(productId) as ViewResult; Assert.IsNotNull(actual); }