public void GetRow()
{
double[][] matrixData1 = {
new[] {1.0, 2.0},
new[] {3.0, 4.0}
};
double[][] matrixData2 = {
new[] {3.0, 4.0}
};
var matrix1 = new Matrix(matrixData1);
var matrix2 = new Matrix(matrixData2);
Matrix matrixRow = matrix1.GetRow(1);
Assert.IsTrue(matrixRow.Equals(matrix2));
try
{
matrix1.GetRow(3);
Assert.IsTrue(false);
}
catch (MatrixError)
{
Assert.IsTrue(true);
}
}