public void get_ImageManipulatorTypeTest() { Image img = new Bitmap(1,1); PictureBox pic = new PictureBox(); pic.Image = img; NullImageObject target = new NullImageObject(pic); ImageManipulatorType.Name expected = ImageManipulatorType.Name.DEFAULT; ImageManipulatorType.Name actual; actual = target.get_ImageManipulatorType(); Assert.AreEqual(expected, actual); }
public void get_BitmapTest() { Image img = new Bitmap(1, 1); PictureBox pic = new PictureBox(); pic.Image = img; NullImageObject target = new NullImageObject(pic); // TODO: Passenden Wert initialisieren Bitmap expected = (Bitmap)img; Bitmap actual; actual = target.get_Bitmap(); Assert.AreEqual(expected, actual); }
public void NullImageObjectConstructorTest() { PictureBox pic = new PictureBox(); // TODO: Passenden Wert initialisieren NullImageObject target = new NullImageObject(pic); }
public void get_ImageTest() { Image img = new Bitmap(1, 1); PictureBox pic = new PictureBox(); pic.Image = img; NullImageObject target = new NullImageObject(pic); Image expected = img; Image actual; actual = target.get_Image(); Assert.AreEqual(expected, actual); }