public void testIsRightChild() { BinaryTreeNode rootNode = new BinaryTreeNode(2); BinaryTreeNode leftChild = new BinaryTreeNode(1, rootNode); BinaryTreeNode rightChild = new BinaryTreeNode(3, rootNode); Assert.IsFalse(rootNode.isRightChild()); Assert.IsFalse(leftChild.isRightChild()); Assert.IsTrue(rightChild.isRightChild()); }