예제 #1
0
        public void Index()
        {
            var controller = new FoodController(_repository);

            var result = controller.Index() as ViewResult;

            Assert.IsNotNull(result);

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

            var result = controller.Create() as ViewResult;

            Assert.IsNotNull(result);

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