示例#1
0
        public void TestClearEmptiesTheSlice()
        {
            var list  = new[] { 0, 1, 2, 3, 4 };
            var slice = new Slice <int>(list, 2, 2);

            Assert.ThrowsException <InvalidOperationException>(() => slice.Clear());
        }