Beispiel #1
0
 public void PointMoveUp()
 {
     var p = new Point(5, 5);
     Assert.AreEqual(new Point(5, 4), p.PlanMove(Direction.Up));
 }
Beispiel #2
0
 public void PointMoveLeft()
 {
     var p = new Point(5, 5);
     Assert.AreEqual(new Point(4, 5), p.PlanMove(Direction.Left));
 }
Beispiel #3
0
 public void PointMoveRight()
 {
     var p = new Point(5, 5);
     Assert.AreEqual(new Point(6, 5), p.PlanMove(Direction.Right));
 }
Beispiel #4
0
 public void PointMoveDown()
 {
     var p = new Point(5, 5);
     Assert.AreEqual(new Point(5, 6), p.PlanMove(Direction.Down));
 }