public void AddAndRemove_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     sut.Add(key, value);
     Assert.True(sut.Remove(key));
     Assert.False(sut.ContainsKey(key));
     Assert.Equal(0, sut.Count);
 }
        public void AddAndTryGetValue_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
        {
            sut.Add(key, value);
            string val;

            Assert.True(sut.TryGetValue(key, out val));
            Assert.Equal(value, val);
        }
 public void AddAndContainsKey_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     sut.Add(key, value);
     Assert.True(sut.ContainsKey(key));
 }
 public void NotContainsKey_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     Assert.False(sut.ContainsKey(key));
 }
 public void Add_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     sut.Add(key, value);
     Assert.Equal(value, sut[key]);
     Assert.Equal(1, sut.Count);
 }
 public void SetAndGetIndexedIListKey_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     sut[(IList <int>)key.GetValues()] = value;
     Assert.Equal(value, sut[(IList <int>)key.GetValues()]);
 }
        public void Keys_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int>[] keys, string value)
        {
            foreach (var key in keys) sut[key] = value;

            var list = sut.Keys.ToList();
            Assert.Equal(keys.Length, list.Count);
            foreach (var item in list)
            {
                Assert.True(keys.Cast<IJaggedIndex<int>>().Contains(item));
            }
        }
 public void AddAndClear_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     sut.Add(key, value);
     sut.Clear();
     Assert.Equal(0, sut.Count);
 }
 public void NotRemove_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     Assert.False(sut.Remove(key));
 }
 public void NotRemove_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     Assert.False(sut.Remove(key));
 }
        public void NotTryGetValue_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
        {
            string val;

            Assert.False(sut.TryGetValue(key, out val));
        }
 public void AddAndContainsKey_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     sut.Add(key, value);
     Assert.True(sut.ContainsKey(key));
 }
 public void NotContainsKey_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     Assert.False(sut.ContainsKey(key));
 }
 public void Add_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     sut.Add(key, value);
     Assert.Equal(value, sut[key]);
     Assert.Equal(1, sut.Count);
 }
 public void NotTryGetValue_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     string val;
     Assert.False(sut.TryGetValue(key, out val));
 }
 public void AddAndTryGetValue_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     sut.Add(key, value);
     string val;
     Assert.True(sut.TryGetValue(key, out val));
     Assert.Equal(value, val);
 }
 public void AddAndClear_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     sut.Add(key, value);
     sut.Clear();
     Assert.Equal(0, sut.Count);
 }
 public void AddAndRemove_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     sut.Add(key, value);
     Assert.True(sut.Remove(key));
     Assert.False(sut.ContainsKey(key));
     Assert.Equal(0, sut.Count);
 }
 public void SetAndGetIndexedCoordinates_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     sut[key] = value;
     Assert.Equal(value, sut[key]);
 }
        public void Enumerate_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int>[] keys, string value)
        {
            foreach (var key in keys) sut[key] = value;

            var keyValuePairs = sut.ToList();
            Assert.Equal(keys.Length, keyValuePairs.Count);
            foreach (var kvp in keyValuePairs)
            {
                Assert.True(keys.Cast<IJaggedIndex<int>>().Contains(kvp.Key));
                Assert.Equal(value, kvp.Value);
            }
        }
 public void SetAndGetIndexedIListKey_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int> key, string value)
 {
     sut[(IList<int>)key.GetValues()] = value;
     Assert.Equal(value, sut[(IList<int>)key.GetValues()]);
 }
        public void Values_5Dimension(JaggedDictionary<int, string> sut, JaggedIndex5<int>[] keys, string value)
        {
            foreach (var key in keys) sut[key] = value;

            var list = sut.Values.ToList();
            Assert.Equal(keys.Length, list.Count);
            foreach (var item in list)
            {
                Assert.Equal(value, item);
            }
        }
 public void SetAndGetIndexedCoordinates_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value)
 {
     sut[key] = value;
     Assert.Equal(value, sut[key]);
 }