Beispiel #1
0
        public void AmountOfPixelsTurnedOnTest()
        {
            Screen screen      = new Screen(7, 3, PATH);
            string instruction = "rect 3x2";

            screen.ProcessLine(instruction);

            instruction = "rotate column x=1 by 1";
            screen.ProcessLine(instruction);

            instruction = "rotate row y=0 by 4";
            screen.ProcessLine(instruction);

            instruction = "rotate column x=1 by 1";
            screen.ProcessLine(instruction);

            instruction = "rect 2x2";
            screen.ProcessLine(instruction);

            Assert.AreEqual(8, screen.AmountOfPixelsTurnedOn());
        }