示例#1
0
        public void BinarySearchTree_01_Insert_01_After1Insert_IsEmptyReturnsFalse()
        {
            // Arrange
            IBinarySearchTree <int> tree = DSBuilder.CreateBinarySearchTreeIntEmpty();
            bool expected = false;

            // Act
            tree.Insert(3);
            bool actual = tree.IsEmpty();

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