Exemplo n.º 1
0
        public void Index()
        {
            var controller = new FoodController(_repository);

            var result = controller.Index() as ViewResult;

            Assert.IsNotNull(result);

            Assert.AreEqual(result.ViewName, "Index");
        }
Exemplo n.º 2
0
        public void CreateTest()
        {
            var controller = new FoodController(_repository);

            var result = controller.Create() as ViewResult;

            Assert.IsNotNull(result);

            Assert.AreEqual(result.ViewName, "Create");
        }