Exemple #1
0
        public void Test_Clear_Method_Should_Properly_Work_for_a_random_case()
        {
            //Given
            var tree = new BinaryTreeCollection <int>
            {
                5,
                3,
                2,
                6,
                4
            };

            //When
            tree.Clear();
            //Then
            Assert.Empty(tree.InOrderTraversal());
        }