Пример #1
0
        public void GetFullPicture()
        {
            var day20 = new Day20("\\AOCTests\\Day20Tests\\Day20TestInput.txt");

            var picture    = day20.CreateFullPicture();
            var finalArray = day20.FlipHorizontally(picture);

            var mainProgram = new MainProgram();
            var lines       = mainProgram.ConvertFileToLines("\\AOCTests\\Day20Tests\\Day20TestResult.txt");
            var array       = mainProgram.ConvertLinesToTwoDimensionalCharArray(lines);

            for (int x = 0; x < picture.GetLength(0); x++)
            {
                for (int y = picture.GetLength(0) - 1; y >= 0; y--)
                {
                    Assert.AreEqual(array[x, y], finalArray[x, y], $"Coordinate x = {0} and y = {y} is wrong");
                }
            }
        }