예제 #1
0
        [Test] public void PublicApi()
        {
            JetListViewNode node = _nodeCollection.Add("Item1");

            Assert.IsFalse(_model.Contains("Item1"));
            _model.Add("Item1");
            Assert.AreEqual(1, _model.Count);
            Assert.IsTrue(_model.Contains("Item1"));
            Assert.IsTrue(_model.IsNodeFocused(node));
            _model.Remove("Item1");
            Assert.AreEqual(0, _model.Count);
            Assert.IsFalse(_model.Contains("Item1"));
            Assert.IsFalse(_model.IsNodeFocused(node));
        }