public void Remove_ReturnsTrue_WhenKeyFound() { var res = _dictionary.Remove("key"); res.Should().BeTrue(); _dictionary.AsEnumerable().Should().BeEmpty(); }
public void Remove_ReturnsFalse_WhenKeyNotFound_WhenEmpty() { _dictionary = new SingleDictionary <string, string>(); var res = _dictionary.Remove("Key"); res.Should().BeFalse(); _dictionary.AsEnumerable().Should().BeEmpty(); }