Exemple #1
0
        public void ExceptionNullColumn()
        {
            var matrix = MatrixTest.GetTestMatrix();

            Assert.Throws <ArgumentNullException>(() => matrix.AddColumn(null));
        }
Exemple #2
0
        public void ExceptionTooManyValues()
        {
            var matrix = MatrixTest.GetTestMatrix();

            Assert.Throws <ArgumentException>(() => matrix.AddColumn(1, 2, 3, 4, 5));
        }
Exemple #3
0
        public void ExceptionInterfaceAdd()
        {
            ICollection <double> matrix = MatrixTest.GetTestMatrix();

            matrix.Add(5);
        }
Exemple #4
0
        public void ExceptionNullMatrix()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.Add(null);
        }
Exemple #5
0
        public void ExceptionNullMatrix()
        {
            var matrix1 = MatrixTest.GetTestMatrix();

            matrix1.Concatenate(null);
        }
Exemple #6
0
        public void ExceptionInterfaceTimesNull()
        {
            IMathematicalMatrix matrix = MatrixTest.GetTestMatrix();

            Assert.Throws <ArgumentNullException>(() => matrix.Multiply(null));
        }
Exemple #7
0
        public void ExceptionInterfaceTimesNull()
        {
            IMathematicalMatrix matrix = MatrixTest.GetTestMatrix();

            matrix.Multiply(null);
        }
Exemple #8
0
        public void ExceptionInvalidRow4()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.InterchangeRows(0, matrix.Rows);
        }
Exemple #9
0
        public void ExceptionIndexNegative()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.MultiplyRow(-1, 2);
        }
Exemple #10
0
        public void ExceptionRowGreaterThanRows()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.MultiplyRow(matrix.Rows, 2);
        }
Exemple #11
0
        public void ExceptionNullArray()
        {
            var matrix = MatrixTest.GetTestMatrix();

            Assert.Throws <ArgumentNullException>(() => matrix.CopyTo(null, 0));
        }
Exemple #12
0
        public void ExceptionNullArray()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.CopyTo(null, 0);
        }
Exemple #13
0
        public void ExceptionInvalidColumn4()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.InterchangeColumns(0, matrix.Columns);
        }
Exemple #14
0
        public void ExceptionZeroColumns()
        {
            var matrix = MatrixTest.GetTestMatrix();

            Assert.Throws <ArgumentOutOfRangeException>(() => matrix.AddColumns(0));
        }
Exemple #15
0
        public void ExceptionInvalidRow4()
        {
            var matrix = MatrixTest.GetTestMatrix();

            Assert.Throws <ArgumentOutOfRangeException>(() => matrix.InterchangeRows(0, matrix.Rows));
        }
Exemple #16
0
        public void ExceptionInvalidColumn1()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.InterchangeColumns(-1, 1);
        }
Exemple #17
0
        public void ExceptionInvalidRow1()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.InterchangeRows(-1, 1);
        }