예제 #1
0
        public void InputOutputClassOpenFileTest()
        {
            // get the class through interface
            IFiles files = new InputOutputFiles();

            // set the testbitmap to be equals to what you open from the explorer
            Bitmap testBitmap = files.openFile();

            // test if the bitmap is not null
            Assert.IsNotNull(testBitmap);
        }
예제 #2
0
        public void InputOutputClassSaveFileTest()
        {
            // get the class through interface
            IFiles files = new InputOutputFiles();

            // set testbitmap equals to an image
            Bitmap testBitmap = Properties.Resources.pandanight;

            // run the method to save file
            files.saveFile(testBitmap);

            Assert.IsTrue(true);
        }