コード例 #1
0
        public void Test4()
        {
            var root = new BinaryNode(1);

            var sut    = new IsFullBinaryTree();
            var result = sut.IsFullBT(root);

            Assert.That(result, Is.True);
        }
コード例 #2
0
        public void Test3()
        {
            var root = new BinaryNode(1);

            root.Right      = new BinaryNode(3);
            root.Right.Left = new BinaryNode(4);

            var sut    = new IsFullBinaryTree();
            var result = sut.IsFullBT(root);

            Assert.That(result, Is.False);
        }