Exemplo n.º 1
0
        public void SetUp()
        {
            _sut = new HashSetDictionary <string, string>(StringComparer.InvariantCultureIgnoreCase, StringComparer.InvariantCultureIgnoreCase);
            _sut.AddMany("key1", new[] { "value" });
            _sut.AddMany("key2", new[] { "value1", "value2" });

            _keys   = _sut.Keys.ToList();
            _values = _sut.Values.ToList();
        }
Exemplo n.º 2
0
        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.GetValuesAsHashSet(1), Is.Empty);
            Assert.That(_sut.Keys, Is.Empty);
            Assert.That(_sut.Values, Is.Empty);
        }