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

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

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

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

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

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

            Assert.Throws <ArgumentNullException>(() => matrix.Multiply(null));
        }
예제 #7
0
파일: Multiply.cs 프로젝트: krs43/ngenerics
        public void ExceptionInterfaceTimesNull()
        {
            IMathematicalMatrix matrix = MatrixTest.GetTestMatrix();

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

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

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

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

            Assert.Throws <ArgumentNullException>(() => matrix.CopyTo(null, 0));
        }
예제 #12
0
파일: CopyTo.cs 프로젝트: krs43/ngenerics
        public void ExceptionNullArray()
        {
            var matrix = MatrixTest.GetTestMatrix();

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

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

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

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

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

            matrix.InterchangeRows(-1, 1);
        }