示例#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]);
        }
示例#2
0
 public void ExceptionDimensionCountNegative()
 {
     VectorN.GetUnitVector(-1);
 }
示例#3
0
 public void ExceptionDimensionCountZero()
 {
     VectorN.GetUnitVector(0);
 }
示例#4
0
 public void ExceptionDimensionCountNegative()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetUnitVector(-1));
 }
示例#5
0
 public void ExceptionDimensionCountZero()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetUnitVector(0));
 }