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); }
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); }