public void Clear() { //**************************************** var Random = Initialise(); var Records = new StringKeyDictionary <int>(1024); //**************************************** foreach (var Pair in YieldRandom(Random, 1024)) { Records.Add(Pair.Key, Pair.Value); } //**************************************** Records.Clear(); Assert.AreEqual(0, Records.Count); }