Esempio n. 1
0
 public Cmd(InterfaceOutput intf)
 {
     mIntfShow = intf;
     for (int i = 0; i < 60; i++)
     {
         picture_list[i] = "screen" + i + ".png";
     }
 }
Esempio n. 2
0
        public void TestSaveImageToComputerFormatBMP()
        {
            //Substitute for ManagerInputOutput
            InterfaceOutput outputInterface = Substitute.For <ManagerInputOutput>();

            Bitmap originalBitmapToTest = RetrieveImage.RetrieveImageFromPath("egyptBMP.bmp");

            //Name the to be saved image "TestBPM.bmp"
            outputInterface.SaveImage(originalBitmapToTest);

            Bitmap savedBitmap = RetrieveImage.RetrieveImageFromPath("TestBMP.bmp");

            Assert.IsTrue(RetrieveImage.Equals(originalBitmapToTest, savedBitmap));
        }
Esempio n. 3
0
 public void setFindCall(InterfaceOutput inter)
 {
     mInterface = inter;
 }