public void ShouldAddLineToCanvas() { target.Create(20, 4); target.AddLine(new Point(1, 2), new Point(6, 2)); var points = target.Points; for (var x = 1; x < 7; x++) { Assert.AreEqual('x', points[2, x]); } }
public void Execute(ICanvas canvas) { var point1 = new Point(_x1, _y1); var point2 = new Point(_x2, _y2); canvas.AddLine(point1, point2); canvas.Print(); }