src/GenFx.Components.Tests/TreeNodeCollectionTest.cs
/// <summary>
/// Tests that the <see cref="TreeNodeCollection.Add"/>. method works correctly.
/// </summary>
Tests that the . method works correctly.
Tests that the . method works correctly .
[Fact]
        public void TreeNodeCollection_Add()
        {
            TreeNodeCollection collection = new TreeNodeCollection();
            TreeNode node1 = new TreeNode();
            collection.Add(node1);
            TreeNode node2 = new TreeNode();
            collection.Add(node2);
            Assert.Equal(2, collection.Count);
            Assert.Same(node1, collection[0]);
            Assert.Same(node2, collection[1]);
        }
[ Fact ] public void TreeNodeCollection_Add ( ) { TreeNodeCollection collection = new TreeNodeCollection ( ) ; TreeNode node1 = new TreeNode ( ) ; collection . Add ( node1 ) ; TreeNode node2 = new TreeNode ( ) ; collection . Add ( node2 ) ; Assert . Equal ( 2 , collection . Count ) ; Assert . Same ( node1 , collection [ 0 ] ) ; Assert . Same ( node2 , collection [ 1 ] ) ; }
Tests that the .
Tests that the .