public void CheckHeight_Unbalanced_MinValue()
        {
            var actual = TreeExtensions.CheckHeight(CreateTwoLevelsUnbalanced());

            Assert.AreEqual(int.MinValue, actual);

            actual = TreeExtensions.CheckHeight(CreateThreeLevelsUnbalanced());
            Assert.AreEqual(int.MinValue, actual);
        }
        public void CheckHeight_Balanced_Zero()
        {
            var actual = TreeExtensions.CheckHeight(CreateOneNode());

            Assert.AreEqual(0, actual);

            actual = TreeExtensions.CheckHeight(CreateTwoLevels());
            Assert.AreEqual(1, actual);

            actual = TreeExtensions.CheckHeight(CreateThreeLevels());
            Assert.AreEqual(2, actual);
        }
        public void CheckHeight_Null_NegativeOne()
        {
            var actual = TreeExtensions.CheckHeight <int>(null);

            Assert.AreEqual(-1, actual);
        }