Exemplo n.º 1
0
        public void Write_WithSize3()
        {
            RotatingMatrixSolver testSolver = new RotatingMatrixSolver(3);

            var expected = this.matrix3;
            var actual = testConsole.Write(testSolver.Field);

            Assert.AreEqual(expected, actual);
        }
        static void Main(string[] args)
        {
            IUserInterface consoleUI = new ConsoleUI();

            int input = consoleUI.Read();

            RotatingMatrixSolver matrix = new RotatingMatrixSolver(input);

            consoleUI.Write(matrix.Field);
        }