public void MatrixDouble_GetRow() { MatrixDouble m = CreateRandomMatrix(2, 2); double[] c; c = m.GetRow(0); Assert.IsNotNull(c); Assert.AreEqual(2, c.Length); c = m.GetRow(1); Assert.IsNotNull(c); Assert.AreEqual(2, c.Length); }
public void MatrixDouble_GetRow_Exceptions() { MatrixDouble m = CreateRandomMatrix(2, 2); Assert.Throws <ArgumentOutOfRangeException>(() => m.GetRow(2)); }