public void GridToLinearVerticalStrategy_NxNStringGrid_ReversedValueReturnsBottomToTopString(string gridSource, string expected)
        {
            //arrange
            IGridManager gridManager = new GridManager(_testUtilities.StringToGrid(gridSource));

            //act
            var         gridToLinearStrategy = new GridToLinearVerticalStrategy(gridManager);
            ILinearView linearView           = gridToLinearStrategy.GridToLinear();

            //assert
            Assert.True(expected == linearView.ReversedValue);
        }
        public void GridToLinearVerticalStrategy_NxNStringGrid_ReturnsReversedIndexToGridDictionary()
        {
            //arrange
            string[,] grid =
            {
                { "A", "B" },
                { "C", "D" }
            };
            IGridManager gridManager = new GridManager(grid);

            var expected = new Dictionary <int, Point>()
            {
                { 0, new Point(1, 1) }, { 1, new Point(1, 0) }, { 2, new Point(0, 1) }, { 3, new Point(0, 0) }
            };

            //act
            var         gridToLinearStrategy = new GridToLinearVerticalStrategy(gridManager);
            ILinearView linearView           = gridToLinearStrategy.GridToLinear();

            //assert
            Assert.Equal(expected, linearView.ReversedIndexToGridPosition);
        }