Beispiel #1
0
 public IEnumerable <Test> DoesNotRemoveAnyKeys()
 {
     foreach (string key in keys)
     {
         yield return(Assert.That(dictionary.Remove(key)).Is.False);
     }
 }
Beispiel #2
0
            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);
            }
Beispiel #3
0
 public Test Remove_ExistingValue_ReturnsTrue()
 {
     return(Assert.That(dictionary.Remove("teamS", "cargo")).Is.True);
 }
Beispiel #4
0
            public Test RemoveExistingKey_LowersCount()
            {
                dictionary.Remove(key);

                return(Assert.That(dictionary.Count).Is.Zero);
            }