public void UnitRdx_RemoveWhereElement() { var rd = new RankedDictionary <int, int>(); for (int ix = 0; ix < 1000; ++ix) { rd.Add(ix, -ix); } int c0 = rd.Count; int removed = rd.RemoveWhereElement(IsPairEven); Assert.AreEqual(500, removed); foreach (int val in rd.Values) { Assert.IsTrue(val % 2 != 0); } }
public void CrashRdx_RemoveWhereElement_ArgumentNull() { var rd = new RankedDictionary <int, int>(); rd.RemoveWhereElement(null); }