public void Simple() { var vector = new Vector3D(1, 2, 34); vector.SetValues(4, 6, 8); Assert.AreEqual(4, vector.X); Assert.AreEqual(6, vector.Y); Assert.AreEqual(8, vector.Z); }
public void ExceptionTooManyValues() { var vector = new Vector3D(); vector.SetValues(4, 6, 3, 7); }
public void ExcepionNotEnoughValues() { var vector = new Vector3D(); vector.SetValues(4); }
public void ExceptionNoValues() { var vector = new Vector3D(); vector.SetValues(); }
public void ProductExample() { var vector3D = new Vector3D(); vector3D.SetValues(2, 3, 5); Assert.AreEqual(30, vector3D.Product()); }