public void ImageManipulatorConstructorTest()
        {
            Bitmap bitmap = new Bitmap(10, 10);
            ImageManipulatorType.Name filter = ImageManipulatorType.Name.GRAYSCALE; // TODO: Passenden Wert initialisieren
            int threads = 2; // TODO: Passenden Wert initialisieren
            ThreadHandler thHandler = new ThreadHandler(threads);
            ImageManipulator t = new ImageManipulator(bitmap, filter, thHandler); // TODO: Passenden Wert initialisieren
            PrivateObject param0 = new PrivateObject(t); // TODO: Passenden Wert initialisieren
            ImageManipulator_Accessor target = new ImageManipulator_Accessor(param0);

            Assert.IsNotNull( target.bitmap);
            Assert.IsNotNull(target.thHandler);
            Assert.IsNotNull(target.filter);
        }
 public void computeHeightStepsTest()
 {
     Bitmap bitmap = new Bitmap(10, 10);
     ImageManipulatorType.Name filter = ImageManipulatorType.Name.GRAYSCALE; // TODO: Passenden Wert initialisieren
     int threads = 2; // TODO: Passenden Wert initialisieren
     ThreadHandler thHandler = new ThreadHandler(threads);
     ImageManipulator t = new ImageManipulator(bitmap, filter, thHandler); // TODO: Passenden Wert initialisieren
     PrivateObject param0 = new PrivateObject(t); // TODO: Passenden Wert initialisieren
     ImageManipulator_Accessor target = new ImageManipulator_Accessor(param0);
     int height = 10; // TODO: Passenden Wert initialisieren
     int expected = 5; // TODO: Passenden Wert initialisieren
     int actual;
     actual = target.computeHeightSteps(height);
     Assert.AreEqual(expected, actual);
 }
        public void performTest()
        {
            Bitmap bitmap = new Bitmap(10, 10);
            ImageManipulatorType.Name filter = ImageManipulatorType.Name.GRAYSCALE; // TODO: Passenden Wert initialisieren
            int threads = 2; // TODO: Passenden Wert initialisieren
            ThreadHandler thHandler = new ThreadHandler(threads);
            ImageManipulator target = new ImageManipulator(bitmap, filter, thHandler); // TODO: Passenden Wert initialisieren

            bool expected = true; // TODO: Passenden Wert initialisieren
            bool actual = target.perform();

            Assert.AreEqual(expected, actual);
        }
        public void performTest1()
        {
            Bitmap bitmap = new Bitmap(100, 100);
            ImageManipulatorType.Name filter = ImageManipulatorType.Name.GRAYSCALE; // TODO: Passenden Wert initialisieren
            int threads = 2; // TODO: Passenden Wert initialisieren
            ThreadHandler thHandler = new ThreadHandler(threads);
            ImageManipulator t = new ImageManipulator(bitmap, filter, thHandler); // TODO: Passenden Wert initialisieren
            PrivateObject param0 = new PrivateObject(t); // TODO: Passenden Wert initialisieren
            ImageManipulator_Accessor target = new ImageManipulator_Accessor(param0);

            BitmapData bmData = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height),
               ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
            int stride = bmData.Stride;

            int bytes = Math.Abs(bmData.Stride) * bmData.Height;

            System.IntPtr Scan0 = bmData.Scan0;

            target.perform(Scan0, stride);

            // Die Funktion stößt nur andere Funktionen ab hier an. Was testen?

            bitmap.UnlockBits(bmData);
        }