public void Simple() { var vector = VectorN.GetZeroVector(3); Assert.AreEqual(3, vector.DimensionCount); Assert.AreEqual(0, vector[0]); Assert.AreEqual(0, vector[1]); Assert.AreEqual(0, vector[2]); }
public void ExceptionNegative() { VectorN.GetZeroVector(-1); }
public void ExceptionZero() { VectorN.GetZeroVector(0); }
public void ExceptionNegative() { Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetZeroVector(-1)); }
public void ExceptionZero() { Assert.Throws <ArgumentOutOfRangeException>(() => VectorN.GetZeroVector(0)); }