public IEnumerable <Test> DoesNotRemoveAnyKeys() { foreach (string key in keys) { yield return(Assert.That(dictionary.Remove(key)).Is.False); } }
public MultidictionaryWithItemsRemoved() { dictionary = new Multidictionary <string, int>(); dictionary.AddRange("SUnit", new int[] { 50, 100, 150 }); dictionary.AddRange("hello", new int[] { 7 }); dictionary.AddRange("TeamS", new int[] { 420, 69 }); dictionary.Remove("hello", 7); }
public Test Remove_ExistingValue_ReturnsTrue() { return(Assert.That(dictionary.Remove("teamS", "cargo")).Is.True); }
public Test RemoveExistingKey_LowersCount() { dictionary.Remove(key); return(Assert.That(dictionary.Count).Is.Zero); }