示例#1
0
        public void GetMenuTest()
        {
            CustomerFormPresentationModel model = new CustomerFormPresentationModel(new Model());
            List <string> menuName = new List <string> {
                "大麥克", "雙層牛肉吉事堡", "安格斯黑牛堡", "嫩煎雞腿堡", "麥香雞", "麥克雞塊(6塊)", "麥克雞塊(9塊)", "勁辣雞腿堡", "麥脆雞(2塊)", "麥脆雞(3塊)", "黃金起司豬排堡", "麥香魚", "千島黃金蝦堡", "BLT 安格斯黑牛堡", "BLT 辣脆雞腿堡", "薯條(小包)", "薯條(中包)", "薯條(大包)", "薯餅", "蘋果派", "水果袋", "可口可樂(大)", "雪碧(大)", "冰紅茶(大)", "冰綠茶(大)", "冰奶茶(大)", "柳橙汁(大)"
            };
            List <Meal> menu = model.GetMenu();

            for (int i = 0; i < menu.Count; i++)
            {
                Assert.AreEqual(menu[i].Name, menuName[i]);
            }
        }