Example #1
0
        public void Simple()
        {
            var vector = VectorN.GetUnitVector(3);

            Assert.AreEqual(3, vector.DimensionCount);
            Assert.AreEqual(1, vector[0]);
            Assert.AreEqual(1, vector[1]);
            Assert.AreEqual(1, vector[2]);
        }
Example #2
0
 public void ExceptionDimensionCountNegative()
 {
     VectorN.GetUnitVector(-1);
 }
Example #3
0
 public void ExceptionDimensionCountZero()
 {
     VectorN.GetUnitVector(0);
 }
Example #4
0
 public void ExceptionDimensionCountNegative()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetUnitVector(-1));
 }
Example #5
0
 public void ExceptionDimensionCountZero()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetUnitVector(0));
 }