Exemplo n.º 1
0
        public void DrawHouse()
        {
            DrawingToolTest.DrawHexagon("canvas", 600, 200, 700, 250);
            DrawingToolTest.DrawLine("canvas", 475, 200, 350, 350);
            DrawingToolTest.DrawLine("canvas", 475, 200, 600, 350);
            DrawingToolTest.DrawRectangle("canvas", 350, 350, 600, 550);
            DrawingToolTest.DrawRectangle("canvas", 600, 220, 610, 365);
            DrawingToolTest.DrawRectangle("canvas", 400, 400, 430, 430);
            DrawingToolTest.DrawRectangle("canvas", 450, 400, 480, 430);
            DrawingToolTest.DrawRectangle("canvas", 425, 440, 470, 500);
            DrawingToolTest.DrawRectangle("canvas", 510, 390, 520, 435);
            DrawingToolTest.DrawRectangle("canvas", 530, 375, 540, 430);
            DrawingToolTest.DrawRectangle("canvas", 550, 395, 565, 460);
            DrawingToolTest.MouseDragging("canvas", 565, 460, 570, 465);
            Robot.ClickButton("Undo");
            Robot.ClickButton("Redo");
            Robot.ClickButton("Save");
            Robot.ClickButton("是(Y)");
            UITestControl canvas = Robot.FindPanel("canvas");

            Mouse.Click(canvas, new Point(650, 225));
            Robot.AssertText("_shapePositionTextLabel", "Hexagon(600,200,700,250)");
            DrawingToolTest.ClickClear();
            Robot.ClickButton("Load");
            Robot.ClickButton("是(Y)");
            Mouse.Click(canvas, new Point(650, 225));
            Robot.AssertText("_shapePositionTextLabel", "Hexagon(600,200,700,250)");
            DrawingToolTest.ClickClear();
        }
Exemplo n.º 2
0
 public void ClickClearTest()
 {
     DrawingToolTest.ClickClear();
 }