Exemplo n.º 1
0
        public void GetOrderIdListTest()
        {
            string[] idList = { "item0", "item1" };
            _itemOrder.AddToOrder(idList[0]);
            _itemOrder.AddToOrder(idList[1]);
            Assert.AreEqual(2, _itemOrder.GetOrderIdList().Count);

            foreach (string id in idList)
            {
                Assert.IsTrue(_itemOrder.GetOrderIdList().Contains(id));
            }
        }