public void StringMatrixExtensions_CombineStringMatrices_Cols() { var matrix1 = new StringMatrix(InputData, 2, 3); var matrix2 = new StringMatrix(InputData, 2, 3); var actual = matrix1.CombineCols(matrix2); Assert.AreEqual(new StringMatrix(CombineDataCols, 2, 6), actual); }
public void StringMatrixExtensions_CombineStringMatrixAndVector() { var matrix = new StringMatrix(InputData, 2, 3); var vector = new string[] { "3", "6" }; var expected = new StringMatrix(new string[] { "1", "2", "3", "3", "4", "5", "6", "6" }, 2, 4); var actual = matrix.CombineCols(vector); Assert.AreEqual(expected, actual); }