Beispiel #1
0
        public void ExceptionDifferentDimensions1()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(4);

            vector1.CrossProduct(vector2);
        }
Beispiel #2
0
        public void ExceptionDifferentDimensions1()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(4);

            Assert.Throws <ArgumentException>(() => vector1.CrossProduct(vector2));
        }
Beispiel #3
0
        public void Exception2x1()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(1);

            vector1.CrossProduct(vector2);
        }
Beispiel #4
0
        public void Exception2x1()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(1);

            Assert.Throws <ArgumentException>(() => vector1.CrossProduct(vector2));
        }
Beispiel #5
0
        public void Exception4x2()
        {
            var vector1 = new VectorBaseTestObject(4);
            var vector2 = new VectorBaseTestObject(2);

            Assert.Throws <InvalidOperationException>(() => vector1.CrossProduct(vector2));
        }
Beispiel #6
0
        public void Exception2x2()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(2);

            Assert.Throws <NotImplementedException>(() => vector1.CrossProduct(vector2));
        }
Beispiel #7
0
        public void Exception3x3()
        {
            var vector1 = new VectorBaseTestObject(3);
            var vector2 = new VectorBaseTestObject(3);

            Assert.Throws <NotImplementedException>(() => vector1.CrossProduct(vector2), "CrossProductSafe");
        }
Beispiel #8
0
 public void ExceptionNullVector()
 {
     var vector1 = new VectorBaseTestObject(2);
     vector1.CrossProduct(null);
 }
Beispiel #9
0
 public void ExceptionDifferentDimensions1()
 {
     var vector1 = new VectorBaseTestObject(2);
     var vector2 = new VectorBaseTestObject(4);
     vector1.CrossProduct(vector2);
 }
Beispiel #10
0
 public void Exception4x2()
 {
     var vector1 = new VectorBaseTestObject(4);
     var vector2 = new VectorBaseTestObject(2);
     vector1.CrossProduct(vector2);
 }
Beispiel #11
0
        public void ExceptionNullVector()
        {
            var vector1 = new VectorBaseTestObject(2);

            vector1.CrossProduct(null);
        }
Beispiel #12
0
        public void ExceptionNullVector()
        {
            var vector1 = new VectorBaseTestObject(2);

            Assert.Throws <ArgumentNullException>(() => vector1.CrossProduct(null));
        }