예제 #1
0
        public void Delete_EmptyTree_NoChange(string keyToDelete)
        {
            // Arrange
            var radixTree = new RadixTree <int>();

            // Act
            var(_, ok) = radixTree.Delete(keyToDelete);

            // Assert
            Assert.False(ok, "Key should not be removed");
            Assert.Equal(0, radixTree.Count);
        }