Accord.Tests.Math.MatrixTest.ApplyTest5 C# (CSharp) Method

ApplyTest5() private method

private ApplyTest5 ( ) : void
return void
        public void ApplyTest5()
        {
            int[] matrix = { 1, 2, 3 };

            Func<int, int, string> func =
                (x, i) => "Element at (" + i + ") is " + x;

            string[] expected =
            {
                "Element at (0) is 1",
                "Element at (1) is 2",
                "Element at (2) is 3",
            };

            string[] actual = Matrix.ApplyWithIndex(matrix, func);

            Assert.IsTrue(expected.IsEqual(actual));
        }
MatrixTest