Esempio n. 1
0
        public void BinarySearchTree_01_Insert_03_After1Insert_HeightEquals0()
        {
            // Arrange
            IBinarySearchTree <int> tree = DSBuilder.CreateBinarySearchTreeIntEmpty();
            int expected = 0;

            // Act
            tree.Insert(3);
            int actual = tree.Height();

            // Assert
            Assert.AreEqual(expected, actual);
        }