예제 #1
0
        public void EceptionDifferentDimensions()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(3);

            vector1.DotProduct(vector2);
        }
예제 #2
0
        public void Exception1()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(2);

            vector1.DotProduct(vector2);
        }
예제 #3
0
        public void EceptionDifferentDimensions()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(3);

            Assert.Throws <ArgumentException>(() => vector1.DotProduct(vector2));
        }
예제 #4
0
        public void Exception1()
        {
            var vector1 = new VectorBaseTestObject(2);
            var vector2 = new VectorBaseTestObject(2);

            Assert.Throws <NotImplementedException>(() => vector1.DotProduct(vector2), "DotProductSafe");
        }
예제 #5
0
 public void ExceptionNullVector()
 {
     var vector1 = new VectorBaseTestObject(2);
     vector1.DotProduct(null);
 }
예제 #6
0
 public void Exception1()
 {
     var vector1 = new VectorBaseTestObject(2);
     var vector2 = new VectorBaseTestObject(2);
     vector1.DotProduct(vector2);
 }
예제 #7
0
 public void EceptionDifferentDimensions()
 {
     var vector1 = new VectorBaseTestObject(2);
     var vector2 = new VectorBaseTestObject(3);
     vector1.DotProduct(vector2);
 }
예제 #8
0
        public void ExceptionNullVector()
        {
            var vector1 = new VectorBaseTestObject(2);

            vector1.DotProduct(null);
        }
예제 #9
0
        public void ExceptionNullVector()
        {
            var vector1 = new VectorBaseTestObject(2);

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