Exemple #1
0
        [Test] public void IncrementalSearch()
        {
            JetListViewNode node  = _nodeCollection.Add("Test");
            JetListViewNode node2 = _nodeCollection.Add("Rest");

            JetListViewColumn col = new JetListViewColumn();

            _columnCollection.Add(col);
            _incSearcher.IncrementalSearch("R");
            Assert.IsTrue(_selectionModel.IsNodeSelected(node2));
            Assert.AreEqual("R", _rowRenderer.SearchHighlightText);
        }
Exemple #2
0
        [Test] public void MouseSelect()
        {
            JetListViewNode item = _nodeCollection.Add("Item1", null);

            Assert.IsFalse(_model.IsNodeSelected(item));
            _model.HandleMouseDown(item, Keys.None);
            Assert.IsTrue(_model.IsNodeSelected(item));
            Assert.IsTrue(_model.IsNodeFocused(item));
        }