public void calculate_entropyTest()
 {
     Bitmap image = new Bitmap(3, 1);
     StatistikModel_Accessor target = new StatistikModel_Accessor(image);
     double expected = 0F;
     double actual;
     actual = target.calculate_entropy();
     Assert.AreEqual(expected, actual);
 }
        public void prepare_histogram_dataTest()
        {
            Bitmap bitmap = new Bitmap(3, 1);
            StatistikModel_Accessor target = new StatistikModel_Accessor(bitmap);

            target.entropy = 1234.34;
            Assert.AreEqual(1234.34, target.get_entropy());
            target.prepare_histogram_data();
            Assert.IsNotNull(target.get_entropy());
        }
        public void calculate_varianceTest()
        {
            Bitmap image = new Bitmap(3, 1);
            StatistikModel_Accessor target = new StatistikModel_Accessor(image);
            double expected = 0F;
            double actual;

            actual = target.calculate_variance();
            Assert.AreEqual(expected, actual);
        }
 public void calculate_averageTest()
 {
     Bitmap image = new Bitmap(3, 1);
     StatistikModel_Accessor target = new StatistikModel_Accessor(image); // TODO: Passenden Wert initialisieren
     int sum_grey_values = 9;
     int expected = 3;
     int actual;
     actual = target.calculate_average(sum_grey_values);
     Assert.AreEqual(expected, actual);
 }
        public void calculate_averageTest()
        {
            Bitmap image = new Bitmap(3, 1);
            StatistikModel_Accessor target = new StatistikModel_Accessor(image); // TODO: Passenden Wert initialisieren
            int sum_grey_values            = 9;
            int expected = 3;
            int actual;

            actual = target.calculate_average(sum_grey_values);
            Assert.AreEqual(expected, actual);
        }
        public void StatistikModelConstructorTest()
        {
            Image image = new Bitmap(1, 1);
            // StatistikModel target = new StatistikModel(image);
            StatistikModel_Accessor target = new StatistikModel_Accessor(image);

            //  target.bitmap
            Assert.IsInstanceOfType(target.bitmap, typeof(Bitmap));
            Assert.IsNotNull(target.bitmap);

            Image image2 = null;
            // StatistikModel target = new StatistikModel(image);
            StatistikModel_Accessor target2 = new StatistikModel_Accessor(image2);

            //  target.bitmap
            Assert.IsNotInstanceOfType(target2.bitmap, typeof(Bitmap));
            Assert.IsNull(target2.bitmap);
        }
        public void calculate_peakTest()
        {
            Bitmap image = new Bitmap(3, 1);
            StatistikModel_Accessor target = new StatistikModel_Accessor(image);
            int histo = 3;
            int peak = 100;
            int expected = 100;
            int actual;
            actual = target.calculate_peak(histo, peak);
            Assert.AreEqual(expected, actual);

             histo = 100;
             peak = 3;
             expected = 100;

            actual = target.calculate_peak(histo, peak);
            Assert.AreEqual(expected, actual);
        }
        public void calculate_peakTest()
        {
            Bitmap image = new Bitmap(3, 1);
            StatistikModel_Accessor target = new StatistikModel_Accessor(image);
            int histo    = 3;
            int peak     = 100;
            int expected = 100;
            int actual;

            actual = target.calculate_peak(histo, peak);
            Assert.AreEqual(expected, actual);

            histo    = 100;
            peak     = 3;
            expected = 100;

            actual = target.calculate_peak(histo, peak);
            Assert.AreEqual(expected, actual);
        }
        public void StatistikModelConstructorTest()
        {
            Image image = new Bitmap(1,1);
               // StatistikModel target = new StatistikModel(image);
            StatistikModel_Accessor target = new StatistikModel_Accessor(image);
              //  target.bitmap
            Assert.IsInstanceOfType(target.bitmap, typeof(Bitmap));
            Assert.IsNotNull(target.bitmap);

            Image image2 = null;
            // StatistikModel target = new StatistikModel(image);
            StatistikModel_Accessor target2 = new StatistikModel_Accessor(image2);
            //  target.bitmap
            Assert.IsNotInstanceOfType(target2.bitmap, typeof(Bitmap));
            Assert.IsNull(target2.bitmap);
        }
 public void prepare_histogram_dataTest()
 {
     Bitmap bitmap = new Bitmap(3, 1);
     StatistikModel_Accessor target = new StatistikModel_Accessor(bitmap);
     target.entropy = 1234.34;
     Assert.AreEqual( 1234.34, target.get_entropy());
     target.prepare_histogram_data();
     Assert.IsNotNull(target.get_entropy());
 }