コード例 #1
0
        public void ExampleTests(List <int[]> expected, int x, int y)
        {
            var actual = Kata.cartesianNeighbor(2, 2).ToList();

            //actual.Sort((a1, a2) => a1[0] < a2[0] && a1[1] < a2[1] ? -1 :
            //	a1[0] == a2[0] && a1[1] == a2[1] ? 0 : 1);
            //expected.Sort((a1, a2) => a1[0] < a2[0] && a1[1] < a2[1] ? -1 :
            //	a1[0] == a2[0] && a1[1] == a2[1] ? 0 : 1);

            Assert.True(expected.SequenceEqual(actual));
        }