示例#1
0
        public void SEQDessinerEllipseHorsCanvas()
        {
            i = new ModeSequentiel();
            int testEllipse = -1;

            testEllipse = i.CreerEllipse(posXMid + 1000, posYMid + 1000, 50000, 80000);
            i.Afficher(displayTime);// Ne doit rien afficher
        }
示例#2
0
        public void SEQDessinerEllipseR50x80()
        {
            i = new ModeSequentiel();
            int testEllipse = -1;

            testEllipse = i.CreerEllipse(posXMid, posYMid, 50, 80);
            Assert.AreNotEqual(-1, testEllipse);
            i.Afficher(displayTime);
        }
示例#3
0
        public void SEQHomothetieEllipse()
        {
            i = new ModeSequentiel();
            int testEllipse = -1;

            testEllipse = i.CreerEllipse(posXMid, posYMid, 50, 80);
            i.Afficher(displayTime);
            i.NettoyerEcran();
            i.DimensionnerForme(testEllipse, 2);
            i.Afficher(displayTime);
        }
示例#4
0
        public void SEQTranslationEllipse()
        {
            i = new ModeSequentiel();
            int testEllipse = -1;

            testEllipse = i.CreerEllipse(posXMid, posYMid, 50, 80);
            i.Afficher(displayTime);
            i.NettoyerEcran();
            i.DeplacerForme(testEllipse, 200, 200);
            i.Afficher(displayTime);
        }
示例#5
0
        public void SEQRotationEllipse()
        {
            i = new ModeSequentiel();
            int testEllipse = -1;

            testEllipse = i.CreerEllipse(posXMid, posYMid, 50, 80);
            i.Afficher(displayTime);
            i.NettoyerEcran();
            i.TournerForme(testEllipse, -30);
            i.Afficher(displayTime);
        }