Esempio n. 1
0
 public void CanMoveLeftTest()
 {
     for (int i = 0; i < 7; i++)
     {
         Figure figure = new Figure(i, _canvas, _width, _width, _width);
         figure.SetLocation(0, 0);
         Assert.IsFalse(MovementHelper.CanMoveLeft(figure, _canvas));
         figure.SetLocation((int)_canvas.Width / 2, 0);
         Assert.IsTrue(MovementHelper.CanMoveLeft(figure, _canvas));
         _canvas.Children.Clear();
     }
 }