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_1Dimension(JaggedDictionary<int, string> sut, JaggedIndex1<int> key, string value) { sut.Add(key, value); string val; Assert.True(sut.TryGetValue(key, out val)); Assert.Equal(value, val); }
public void AddAndTryGetValue_1Dimension(JaggedDictionary <int, string> sut, JaggedIndex1 <int> key, string value) { sut.Add(key, value); string val; Assert.True(sut.TryGetValue(key, out val)); Assert.Equal(value, val); }
public void AddAndRemove_1Dimension(JaggedDictionary<int, string> sut, JaggedIndex1<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 AddAndContainsKey_1Dimension(JaggedDictionary<int, string> sut, JaggedIndex1<int> key, string value) { sut.Add(key, value); Assert.True(sut.ContainsKey(key)); }
public void Add_1Dimension(JaggedDictionary<int, string> sut, JaggedIndex1<int> key, string value) { sut.Add(key, value); Assert.Equal(value, sut[key]); Assert.Equal(1, sut.Count); }
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 AddAndContainsKey_1Dimension(JaggedDictionary <int, string> sut, JaggedIndex1 <int> key, string value) { sut.Add(key, value); Assert.True(sut.ContainsKey(key)); }
public void Add_1Dimension(JaggedDictionary <int, string> sut, JaggedIndex1 <int> key, string value) { sut.Add(key, value); Assert.Equal(value, sut[key]); Assert.Equal(1, sut.Count); }
public void AddAndClear_5Dimension(JaggedDictionary <int, string> sut, JaggedIndex5 <int> key, string value) { sut.Add(key, value); sut.Clear(); Assert.Equal(0, sut.Count); }