public void InputFileStandard() { BusinessLayer business = new BusinessLayer(imageInterface,filterInterface,edgeDetectionInterface); imageInterface.getImage("nameOfFile").Returns<Bitmap>(new Bitmap(500, 500)); business.setOriginalBitmap("nameOfFile"); Size bitmapSize = business.getOriginalBitmap().Size; Size expectedSize = new Size(500, 500); Assert.AreEqual(expectedSize, bitmapSize); }
//Business Methods //******************** //Method to set the OriginalBitmap displayed in the Image Box public void setOriginalBitmap(string fileName) { try { originalBitmap = imageInterface.getImage(fileName); } catch (System.Exception e) { inputFileException = true; Console.WriteLine(e.Message); } }