public void Simple() { var vector = new Vector2D { X = 1, Y = 2 }; vector.SetValues(4, 6); Assert.AreEqual(4, vector.X); Assert.AreEqual(6, vector.Y); }
public void ExceptionTooManyValues() { var vector = new Vector2D(); vector.SetValues(4, 6, 3); }
public void ExceptionNotEnoughValues() { var vector = new Vector2D(); vector.SetValues(4); }
public void ExceptionNullValues() { var vector = new Vector2D(); vector.SetValues(); }
public void SetValuesExample() { var vector = new Vector2D(); vector.SetValues(4, 6); Assert.AreEqual(4, vector.X); Assert.AreEqual(6, vector.Y); }