src/GenFx.Components.Tests/TreeHelperTest.cs
/// <summary>
/// Tests that an exception is thrown when passing a null node.
/// </summary>
Tests that an exception is thrown when passing a null node.
Tests that an exception is thrown when passing a null node .
[Fact]
        public void TreeHelper_Swap_NullNode()
        {
            Assert.Throws<ArgumentNullException>(() => TreeHelper.Swap(null, new TreeNode()));
            Assert.Throws<ArgumentNullException>(() => TreeHelper.Swap(new TreeNode(), null));
        }
[ Fact ] public void TreeHelper_Swap_NullNode ( ) { Assert . Throws < ArgumentNullException > ( ( ) => TreeHelper . Swap ( null , new TreeNode ( ) ) ) ; Assert . Throws < ArgumentNullException > ( ( ) => TreeHelper . Swap ( new TreeNode ( ) , null ) ) ; }
Tests that an exception is thrown when passing a null node.
Tests that an exception is thrown when passing a null node .