Ejemplo n.º 1
0
 public void TestGenerateMatrix_InputOne()
 {
     IUserInterface userInterface = new ConsoleUserInterface();
     Matrix matrix = new Matrix(userInterface);
     var actualMatrix = matrix.GenerateMatrix();
     var expectedMatrix = new int[1, 1];
     expectedMatrix[0, 0] = 1;
     CollectionAssert.AreEqual(expectedMatrix, actualMatrix);
 }
Ejemplo n.º 2
0
        public static void Main()
        {
            IUserInterface userInterface = new ConsoleUserInterface();
            int dimension = TakeMatrixDimension(userInterface);
            var matrixWalk = new Matrix(dimension);

            var matrix = matrixWalk.GenerateMatrix();

            PrintMatrix(matrix, userInterface);
        }