/// /// Copyright © 2003-2008 JetBrains s.r.o. /// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder). /// using System; using System.Collections; using System.Globalization; using NUnit.Framework; namespace JetBrains.JetListViewLibrary.Tests { [TestFixture] public class NodeCollectionTests { private JetListViewFilterCollection _filters; private JetListViewNodeCollection _nodeCollection; private ArrayList _eventNodes; private int _eventCount; [SetUp] public void SetUp() { _filters = new JetListViewFilterCollection(); _nodeCollection = new JetListViewNodeCollection( _filters ); _eventNodes = new ArrayList(); _eventCount = 0; } private JetListViewNode FetchNext( IEnumerator enumerator ) { if ( !enumerator.MoveNext() ) return null; return (JetListViewNode) enumerator.Current; } private void VerifyItems( IEnumerator enumerator, params object[] items ) { for( int i=0; i