Esempio n. 1
0
        public void SelectRow()
        {
            listView.Select(0);
            ListViewRow firstRow = listView.Rows[0];

            Assert.AreEqual(true, firstRow.IsSelected);
            Assert.AreEqual("listView item selected - " + 0, window.Get <Label>("result").Text);
            listView.Select(1);
            ListViewRow secondRow = listView.Rows[1];

            Assert.AreEqual(true, secondRow.IsSelected);
        }
Esempio n. 2
0
        public void Select()
        {
            ListView listView = window.Get <ListView>("listViewForScenarioTest");

            listView.Select("", "foo");
            ListViewRows rows = listView.SelectedRows;

            Assert.AreEqual(1, rows.Count);
            Assert.AreEqual("foo", rows[0].Cells[0].Text);
        }
 public void SelectItemAfterScroll()
 {
     listView.Select("Key", "Video");
     Assert.AreEqual(1, listView.SelectedRows.Count);
     Assert.AreEqual("Video", listView.SelectedRows[0].Cells["Key"].Text);
 }