Exemplo n.º 1
0
        public void ExceptionNullColumn()
        {
            var matrix = MatrixTest.GetTestMatrix();

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

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

            matrix.Add(5);
        }
Exemplo n.º 4
0
        public void ExceptionNullMatrix()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.Add(null);
        }
Exemplo n.º 5
0
        public void ExceptionNullMatrix()
        {
            var matrix1 = MatrixTest.GetTestMatrix();

            matrix1.Concatenate(null);
        }
Exemplo n.º 6
0
        public void ExceptionInterfaceTimesNull()
        {
            IMathematicalMatrix matrix = MatrixTest.GetTestMatrix();

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

            matrix.Multiply(null);
        }
Exemplo n.º 8
0
        public void ExceptionInvalidRow4()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.InterchangeRows(0, matrix.Rows);
        }
Exemplo n.º 9
0
        public void ExceptionIndexNegative()
        {
            var matrix = MatrixTest.GetTestMatrix();

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

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

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

            matrix.CopyTo(null, 0);
        }
Exemplo n.º 13
0
        public void ExceptionInvalidColumn4()
        {
            var matrix = MatrixTest.GetTestMatrix();

            matrix.InterchangeColumns(0, matrix.Columns);
        }
Exemplo n.º 14
0
        public void ExceptionZeroColumns()
        {
            var matrix = MatrixTest.GetTestMatrix();

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

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

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

            matrix.InterchangeRows(-1, 1);
        }