Example #1
0
 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);
 }
Example #2
0
 public void ExceptionTooManyValues()
 {
     var vector = new Vector2D();
     vector.SetValues(4, 6, 3);
 }
Example #3
0
 public void ExceptionNotEnoughValues()
 {
     var vector = new Vector2D();
     vector.SetValues(4);
 }
Example #4
0
 public void ExceptionNullValues()
 {
     var vector = new Vector2D();
     vector.SetValues();
 }
Example #5
0
 public void SetValuesExample()
 {
     var vector = new Vector2D();
     vector.SetValues(4, 6);
     Assert.AreEqual(4, vector.X);
     Assert.AreEqual(6, vector.Y);
 }