예제 #1
0
 public void CanMoveRightTest()
 {
     for (int i = 0; i < 7; i++)
     {
         Figure figure = new Figure(i, _canvas, _width, _width, _width);
         figure.SetLocation((int)_canvas.Width - figure.Width, 0);
         Assert.IsFalse(MovementHelper.CanMoveRight(figure, _canvas));
         figure.SetLocation((int)_canvas.Width / 2, 0);
         Assert.IsTrue(MovementHelper.CanMoveRight(figure, _canvas));
         _canvas.Children.Clear();
     }
 }