예제 #1
0
파일: Array.cs 프로젝트: Ali-Alzyoud/efl-1
        public static void TestIdxOutBounds()
        {
            var array = new Eina.Array <int>();

            array.Add(4);
            Test.AssertRaises <ArgumentOutOfRangeException>(() => array.At(1));
            Test.AssertRaises <ArgumentOutOfRangeException>(() => array.At(-1));
            Test.AssertNotRaises <ArgumentOutOfRangeException>
                (() => array.At(array.IndexOf(4)));
        }