コード例 #1
0
        public void BinarySearchTree_01_Insert_02_After1Insert_SizeEquals1()
        {
            // Arrange
            IBinarySearchTree <int> tree = DSBuilder.CreateBinarySearchTreeIntEmpty();
            int expected = 1;

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

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