public void TestRemoveAt() { ArrayList4Asserter.AssertRemoveAt( ArrayList4Asserter.CreateArrayListAndAssertValues(10), new IndexOfItems <int, Type>(-1, typeof(ArgumentOutOfRangeException)), new IndexOfItems <int, Type>(10, typeof(ArgumentOutOfRangeException)), new IndexOfItems <int, Type>(50, typeof(ArgumentOutOfRangeException)), new IndexOfItems <int, Type>(5, typeof(int))); }
public void TestRemoveAt() { IList <string> list = RetrieveOnlyInstance <string>(); ArrayList4Asserter.AssertRemoveAt( list, new IndexOfItems <int, Type>(-1, typeof(ArgumentOutOfRangeException)), new IndexOfItems <int, Type>(list.Count, typeof(ArgumentOutOfRangeException)), new IndexOfItems <int, Type>(0, typeof(int)), new IndexOfItems <int, Type>(list.Count - 2, typeof(int))); }