public void UnitRdx_RemoveAt() { var rd = new RankedDictionary <int, int>(); for (int ii = 0; ii < 5000; ++ii) { rd.Add(ii, -ii); } for (int i2 = 4900; i2 >= 0; i2 -= 100) { rd.RemoveAt(i2); } for (int i2 = 0; i2 < 5000; ++i2) { if (i2 % 100 == 0) { Assert.IsFalse(rd.ContainsKey(i2)); } else { Assert.IsTrue(rd.ContainsKey(i2)); } } }
public void CrashRdx_RemoveAtA_ArgumentOutOfRange() { var rd = new RankedDictionary <int, int>(); rd.Add(42, 24); rd.RemoveAt(-1); }
public void CrashRdx_RemoveAtB_ArgumentOutOfRange() { var rd = new RankedDictionary <int, int>(); rd.RemoveAt(0); }