public void ValueManagerGetGridValueIncludingOffsetSpecialCaseTest()
        {
            ValuesManager <TileBase> valueManager = new ValuesManager <TileBase>(inputReader.ReadInputToGrid());

            //Debug.Log(valueManager.GetFrequencyFromIndex(2));
            Assert.True(
                valueManager.GetGridValueIncludingOffset(-1, -1) == valueManager.GetGridValue((int)valueManager.GetGridSize().x - 1, (int)valueManager.GetGridSize().y - 1) &&
                valueManager.GetGridValueIncludingOffset((int)valueManager.GetGridSize().x, (int)valueManager.GetGridSize().y) == valueManager.GetGridValue(0, 0) &&
                valueManager.GetGridValueIncludingOffset(-1, (int)valueManager.GetGridSize().y) == valueManager.GetGridValue((int)valueManager.GetGridSize().x - 1, 0) &&
                valueManager.GetGridValueIncludingOffset((int)valueManager.GetGridSize().x, -1) == valueManager.GetGridValue(0, (int)valueManager.GetGridSize().y - 1)
                );
        }
        public void ValueManagerGetGridValueIncludingOffsetSpecialCase3x3Test()
        {
            ValuesManager <TileBase> valueManager = new ValuesManager <TileBase>(inputReader.ReadInputToGrid());

            //Debug.Log(valueManager.GetFrequencyFromIndex(2));
            Assert.True(
                valueManager.GetGridValueIncludingOffset(-2, -2) == valueManager.GetGridValue((int)valueManager.GetGridSize().x - 2, (int)valueManager.GetGridSize().y - 2) &&
                valueManager.GetGridValueIncludingOffset((int)valueManager.GetGridSize().x + 2, (int)valueManager.GetGridSize().y + 2) == valueManager.GetGridValue(2, 2) &&
                valueManager.GetGridValueIncludingOffset(-2, (int)valueManager.GetGridSize().y + 1) == valueManager.GetGridValue((int)valueManager.GetGridSize().x - 2, 1) &&
                valueManager.GetGridValueIncludingOffset((int)valueManager.GetGridSize().x + 1, -2) == valueManager.GetGridValue(1, (int)valueManager.GetGridSize().y - 2)
                );
        }
        public void ValueManagerIndexTestTrue()
        {
            ValuesManager <TileBase> valueManager = new ValuesManager <TileBase>(inputReader.ReadInputToGrid());
            StringBuilder            b;

            for (int row = 0; row < valueManager.GetGridSize().y; row++)
            {
                b = new StringBuilder();
                for (int col = 0; col < valueManager.GetGridSize().x; col++)
                {
                    b.Append(valueManager.GetGridValue(col, row) + " ");
                }
                Debug.Log(b.ToString());
            }
            Assert.True(valueManager.GetGridValue(0, 1) == valueManager.GetGridValue(0, 2));
        }
        public void PatternFinderResultTest()
        {
            //arrange
            //act

            StringBuilder b;

            for (int y = 0; y < patterndataResults.GetGridLengthInY(); y++)
            {
                b = new StringBuilder();
                for (int x = 0; x < patterndataResults.GetGridLengthInX(); x++)
                {
                    b.Append(patterndataResults.GetIndexAt(x, y) + " ");
                }
                Debug.Log(b.ToString());
            }
            //assert

            Assert.That(patterndataResults.GetGridLengthInY() == valueManager.GetGridSize().x + 2 - (patternSize - 1));
        }