public void RectangleSquarGetPointsTest(int i, int x1, int y1, int x2, int y2) { RectangleSquare figure = new RectangleSquare(); figure._startPoint = new Point(x1, y1); figure._endPoint = new Point(x2, y2); RectangleSquarMoks squarMocks = new RectangleSquarMoks(); List <Point> Exp = squarMocks.Get(i); List <Point> Act = figure.GetPoints(); CollectionAssert.AreEqual(Exp, Act); }
public override void Update() { figure = new RectangleSquare(); }
public SquareFactory() { figure = new RectangleSquare(); }