System.Dynamic.Tests.GetIndexBinderTests.TooFewIndices C# (CSharp) Method

TooFewIndices() private method

private TooFewIndices ( ) : void
return void
        public void TooFewIndices()
        {
            dynamic d = new[,] { { 0, 1, 2, 3 }, { 1, 2, 3, 4 }, { 2, 3, 4, 5 }, { 3, 4, 5, 6 } };
            Assert.Throws<RuntimeBinderException>(() => d[2]);
        }