Beispiel #1
0
        public void TestMethod_DrawTriangle()
        {
            Component2.Form1         form  = new Component2.Form1();
            Component2.commandParser parse = new Component2.commandParser();
            Bitmap outBitmap = form.mybitmap;

            Component2.Drawing mydrawing = new Component2.Drawing(Graphics.FromImage(outBitmap));
            parse.Commands("triangle 30,40,60", "", mydrawing);
        }
Beispiel #2
0
        public void TestMethod_Reset()
        {
            Component2.Form1         form  = new Component2.Form1();
            Component2.commandParser parse = new Component2.commandParser();
            Bitmap outBitmap = form.mybitmap;

            Component2.Drawing mydrawing = new Component2.Drawing(Graphics.FromImage(outBitmap));
            parse.Commands("reset", "", mydrawing);
        }
Beispiel #3
0
        public void TestMethod_updateTest()
        {
            Component2.Form1         form  = new Component2.Form1();
            Component2.commandParser parse = new Component2.commandParser();
            Bitmap outBitmap = form.mybitmap;

            Component2.Drawing mydrawing = new Component2.Drawing(Graphics.FromImage(outBitmap));
            parse.Commands("radius = radius + 10", "", mydrawing);
            parse.Commands("radius = radius - 10", "", mydrawing);
            parse.Commands("radius = radius / 10", "", mydrawing);
            parse.Commands("radius = radius * 10", "", mydrawing);
        }