Пример #1
0
        public void Fn_TC1_AddToGrid(string letter)
        {
            mp.Refresh();
            List <string> gridItems = mp.GetGridItems();

            // remove before add in exists
            if (gridItems.Contains(letter))
            {
                mp.DelGridItem(letter);
            }

            gridItems = mp.GetGridItems();
            Assert.IsFalse(gridItems.Contains(letter), "req 1.2.1 'delete' letter failed, 'Add' could not be checked");

            mp.AddGridItem(letter);
            gridItems = mp.GetGridItems();

            Assert.IsTrue(gridItems.Contains(letter), "req 1.2.1 'Add' do not add letter {0} to grid", letter);
        }