public void Test4() { var root = new BinaryNode(1); var sut = new IsFullBinaryTree(); var result = sut.IsFullBT(root); Assert.That(result, Is.True); }
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); }