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]); }
public void ExceptionDimensionCountNegative() { VectorN.GetUnitVector(-1); }
public void ExceptionDimensionCountZero() { VectorN.GetUnitVector(0); }
public void ExceptionDimensionCountNegative() { Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetUnitVector(-1)); }
public void ExceptionDimensionCountZero() { Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetUnitVector(0)); }