Exemple #1
0
        public void Remove_ReturnsTrue_WhenKeyFound()
        {
            var res = _dictionary.Remove("key");

            res.Should().BeTrue();
            _dictionary.AsEnumerable().Should().BeEmpty();
        }
Exemple #2
0
        public void Remove_ReturnsFalse_WhenKeyNotFound_WhenEmpty()
        {
            _dictionary = new SingleDictionary <string, string>();
            var res = _dictionary.Remove("Key");

            res.Should().BeFalse();
            _dictionary.AsEnumerable().Should().BeEmpty();
        }