public void SetUp() { _sut = new ListDictionary <string, string>(StringComparer.InvariantCultureIgnoreCase); _sut.AddMany("key1", new[] { "value" }); _sut.AddMany("key2", new[] { "value1", "value2" }); _sut.AddMany("key3", new[] { "value", "value" }); _keys = _sut.Keys.ToList(); _values = _sut.Values.ToList(); }
public void If_addMany_with_key_and_no_values_Then_count_and_values_match() { _sut.AddMany(1, new int[0]); Assert.That(_sut.Count, Is.EqualTo(0)); Assert.That(_sut.ContainsKey(0), Is.False); Assert.That(_sut.GetValues(1), Is.Empty); Assert.That(_sut.Keys, Is.Empty); Assert.That(_sut.Values, Is.Empty); }