public void CanMoveDownTest() { for (int i = 0; i < 7; i++) { Figure figure = new Figure(i, _canvas, _width, _width, _width); figure.SetLocation(0, 0); Assert.IsTrue(MovementHelper.CanMoveDown(figure, _canvas)); figure.SetLocation(0, (int)_canvas.Height - figure.Height); Assert.IsFalse(MovementHelper.CanMoveDown(figure, _canvas)); _canvas.Children.Clear(); } }