public void MonoDithering_FloydSteinberg_DitheringIsWorking()
        {
            // given
            string        tiffFile  = string.Format("{0}.tif", GetCurrentMethod());
            MonoDithering converter = new FloydSteinbergMonoDithering();

            // when
            using (var bmpDithered = converter.Dither(testColorBitmap))
            {
                // then
                Assert.AreEqual(bmpDithered.PixelFormat, PixelFormat.Format8bppIndexed);
            }
        }
        public void MonoDithering_FloydSteinberg_RunsForLessThan800ms()
        {
            // given
            MonoDithering converter = new FloydSteinbergMonoDithering();

            // when
            using (var bmpDithered = converter.Dither(testColorBitmap))
            {
                // Nop
            }

            // then
            // Timeout?
        }
        public void MonoDithering_FloydSteinberg_CanSaveAsMonohromaticTiff()
        {
            // given
            string        tiffFile  = string.Format("{0}.tif", GetCurrentMethod());
            MonoDithering converter = new FloydSteinbergMonoDithering();

            // when
            using (var bmpDithered = converter.Dither(testColorBitmap))
                converter.SaveAsMonoTiff(bmpDithered, tiffFile);

            // then
            using (var bmpDithered = new Bitmap(tiffFile))
                Assert.IsTrue(bmpDithered.PixelFormat == PixelFormat.Format1bppIndexed);
        }