public void findMinMaxTest() { Bitmap bitmap = new Bitmap(3, 1); StatistikModel target = new StatistikModel(bitmap); int grey = 0; target.findMinMax(grey); Assert.AreEqual(target.get_max_value(), 0); }
public void draw_histogramTest() { Bitmap bitmap = new Bitmap(3, 1); StatistikModel acc = new StatistikModel(bitmap); System.Windows.Forms.PictureBox statistik_pic = new System.Windows.Forms.PictureBox(); statistik_pic.Image = (Image)bitmap; acc.draw_histogram(statistik_pic, Config.histogram_canal.GREEN); }
public void get_varianceTest() { Bitmap bitmap = new Bitmap(3, 1); StatistikModel target = new StatistikModel(bitmap); double expected = 0F; // TODO: Passenden Wert initialisieren double actual; actual = target.get_variance(); Assert.AreEqual(expected, actual); }
public void get_min_valueTest() { Bitmap bitmap = new Bitmap(3, 1); StatistikModel target = new StatistikModel(bitmap); int expected = 255; // TODO: Passenden Wert initialisieren int actual; actual = target.get_min_value(); Assert.AreEqual(expected, actual); }