示例#1
0
 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)));
 }
示例#2
0
        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)));
        }