Exemplo n.º 1
0
        public void Test4()
        {
            FoodController   foodController = new FoodController(null, null, context.Object);
            JsonResult       json           = (JsonResult)foodController.GetFoodAll();
            List <FoodModel> Foods          = (List <FoodModel>)json.Value;

            Assert.Equal("米", Foods[0].Name);
            Assert.Equal("パン", Foods[1].Name);
        }