public void ArgumentExceptionIsThrownInPackedConstructorWithInvalidLength() { int invalid = 5; /* should trigger bad shape for construction with val */ var a = new GeneralMatrix(columnwise, invalid); Assert.Inconclusive(a.ToString()); }
public void ArgumentExceptionIsThrownInConstructorWithRaggedInputArray() { double[][] array = { new[] { 1.0, 4.0, 7.0 }, new[] { 2.0, 5.0, 8.0, 11.0 }, new[] { 3.0, 6.0, 9.0, 12.0 } }; var a = new GeneralMatrix(array); Assert.Inconclusive(a.ToString()); }