コード例 #1
0
        public void TestIndicesInSquare(int square, int[] expectedIndices)
        {
            List <int> actualIndicesInSquare = GridMath.GetIndicesInSquare(square);

            actualIndicesInSquare.Should().NotBeEmpty()
            .And.HaveCount(GridMath.CellsInSquare);

            foreach (int expectedIndex in expectedIndices)
            {
                actualIndicesInSquare.Should().Contain(expectedIndex);
            }
        }