public void Index() { var controller = new FoodController(_repository); var result = controller.Index() as ViewResult; Assert.IsNotNull(result); Assert.AreEqual(result.ViewName, "Index"); }
public void CreateTest() { var controller = new FoodController(_repository); var result = controller.Create() as ViewResult; Assert.IsNotNull(result); Assert.AreEqual(result.ViewName, "Create"); }