Beispiel #1
0
        public void TestReorder(string arrayKey, int[] order, int[] indices, int element)
        {
            Multiarray <int> array        = TestIntegerArrays[arrayKey];
            Multiarray <int> arrayReorder = array.Reordered(order);

            Assert.AreEqual(array.Size, arrayReorder.Size);
            Assert.AreEqual(order, arrayReorder.Order);
            Assert.AreEqual(element, arrayReorder[indices]);
        }