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); }
public static void Main() { IUserInterface userInterface = new ConsoleUserInterface(); int dimension = TakeMatrixDimension(userInterface); var matrixWalk = new Matrix(dimension); var matrix = matrixWalk.GenerateMatrix(); PrintMatrix(matrix, userInterface); }