コード例 #1
0
        public void TestIndicesInRow(int row, int[] expectedIndices)
        {
            List <int> actualIndicesInRow = GridMath.GetIndicesInRow(row);

            actualIndicesInRow.Should().NotBeEmpty()
            .And.HaveCount(GridMath.CellsInRow);

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