public void ExceptionNullColumn() { var matrix = MatrixTest.GetTestMatrix(); Assert.Throws <ArgumentNullException>(() => matrix.AddColumn(null)); }
public void ExceptionTooManyValues() { var matrix = MatrixTest.GetTestMatrix(); Assert.Throws <ArgumentException>(() => matrix.AddColumn(1, 2, 3, 4, 5)); }
public void ExceptionInterfaceAdd() { ICollection <double> matrix = MatrixTest.GetTestMatrix(); matrix.Add(5); }
public void ExceptionNullMatrix() { var matrix = MatrixTest.GetTestMatrix(); matrix.Add(null); }
public void ExceptionNullMatrix() { var matrix1 = MatrixTest.GetTestMatrix(); matrix1.Concatenate(null); }
public void ExceptionInterfaceTimesNull() { IMathematicalMatrix matrix = MatrixTest.GetTestMatrix(); Assert.Throws <ArgumentNullException>(() => matrix.Multiply(null)); }
public void ExceptionInterfaceTimesNull() { IMathematicalMatrix matrix = MatrixTest.GetTestMatrix(); matrix.Multiply(null); }
public void ExceptionInvalidRow4() { var matrix = MatrixTest.GetTestMatrix(); matrix.InterchangeRows(0, matrix.Rows); }
public void ExceptionIndexNegative() { var matrix = MatrixTest.GetTestMatrix(); matrix.MultiplyRow(-1, 2); }
public void ExceptionRowGreaterThanRows() { var matrix = MatrixTest.GetTestMatrix(); matrix.MultiplyRow(matrix.Rows, 2); }
public void ExceptionNullArray() { var matrix = MatrixTest.GetTestMatrix(); Assert.Throws <ArgumentNullException>(() => matrix.CopyTo(null, 0)); }
public void ExceptionNullArray() { var matrix = MatrixTest.GetTestMatrix(); matrix.CopyTo(null, 0); }
public void ExceptionInvalidColumn4() { var matrix = MatrixTest.GetTestMatrix(); matrix.InterchangeColumns(0, matrix.Columns); }
public void ExceptionZeroColumns() { var matrix = MatrixTest.GetTestMatrix(); Assert.Throws <ArgumentOutOfRangeException>(() => matrix.AddColumns(0)); }
public void ExceptionInvalidRow4() { var matrix = MatrixTest.GetTestMatrix(); Assert.Throws <ArgumentOutOfRangeException>(() => matrix.InterchangeRows(0, matrix.Rows)); }
public void ExceptionInvalidColumn1() { var matrix = MatrixTest.GetTestMatrix(); matrix.InterchangeColumns(-1, 1); }
public void ExceptionInvalidRow1() { var matrix = MatrixTest.GetTestMatrix(); matrix.InterchangeRows(-1, 1); }