[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); }
[SetUp] public void SetUp() { _nodeCollection = new JetListViewNodeCollection(null); _columnCollection = new JetListViewColumnCollection(); _baseRowRenderer = new SingleLineRowRenderer(_columnCollection, _nodeCollection); _baseColumn = new MockJetListViewColumn(); _baseColumn.Width = 100; _columnCollection.Add(_baseColumn); _baseRowRenderer.RowHeight = 17; _previewColumn = new MockJetListViewColumn(); _previewColumn.AutoPreviewHeight = 10; _rowRenderer = new AutoPreviewRowRenderer(_baseRowRenderer, _previewColumn, _columnCollection); _rowRenderer.VisibleWidth = 100; _controlPainter = new MockControlPainter(); _columnCollection.ControlPainter = _controlPainter; }
private void SetupSizeToContentColumn() { JetListViewColumn col = new JetListViewColumn(); col.Width = 0; col.LeftMargin = col.RightMargin = 0; col.SizeToContent = true; _columnCollection.Add(col); }