src/GenFx.Components.Tests/TreeNodeCollectionTest.cs
/// <summary>
/// Tests that an exception is thrown when attempting to add an item to a fixed size collection.
/// </summary>
Tests that an exception is thrown when attempting to add an item to a fixed size collection.
Tests that an exception is thrown when attempting to add an item to a fixed size collection .
[Fact]
        public void TreeNodeCollection_Add_FixedSize()
        {
            TreeNodeCollection collection = new TreeNodeCollection(2);
            TreeNode node1 = new TreeNode();
            Assert.Throws<InvalidOperationException>(() => collection.Add(node1));
        }
[ Fact ] public void TreeNodeCollection_Add_FixedSize ( ) { TreeNodeCollection collection = new TreeNodeCollection ( 2 ) ; TreeNode node1 = new TreeNode ( ) ; Assert . Throws < InvalidOperationException > ( ( ) => collection . Add ( node1 ) ) ; }
Tests that an exception is thrown when attempting to add an item to a fixed size collection.
Tests that an exception is thrown when attempting to add an item to a fixed size collection .