src/GenFx.Components.Tests/TreeNodeTest.cs
/// <summary>
/// Tests an exception is thrown when passing a null node.
/// </summary>
Tests an exception is thrown when passing a null node.
Tests an exception is thrown when passing a null node .
[Fact]
        public void TreeNode_AppendChildCore_NullNode()
        {
            TreeNode node = new TreeNode();
            PrivateObject accessor = new PrivateObject(node);
            Assert.Throws<ArgumentNullException>(() => accessor.Invoke("AppendChildCore", (TreeNode)null));
        }
[ Fact ] public void TreeNode_AppendChildCore_NullNode ( ) { TreeNode node = new TreeNode ( ) ; PrivateObject accessor = new PrivateObject ( node ) ; Assert . Throws < ArgumentNullException > ( ( ) => accessor . Invoke ( " " , ( TreeNode ) null ) ) ; }
Tests an exception is thrown when passing a null node.
Tests an exception is thrown when passing a null node .