public void GetPixelSlow2()
 {
     var testBitmap = TestingHelper.GetTestBitmap2();
     using (var slow = new SlowBitmapPixelProvider(testBitmap, true))
     {
         for (int x = 0; x < testBitmap.Width; ++x)
         {
             for (int y = 0; y < testBitmap.Height; ++y)
             {
                 var expected = NativeColor.FromDrawingColor(testBitmap.GetPixel(x, y));
                 var actual = slow.GetPixel(x, y);
                 AssertEx.AreEqual<NativeColor>(expected, actual);
             }
         }
     }
 }
        public void SetPixelSlow2()
        {
            var testBitmap = TestingHelper.GetTestBitmap2();
            using (var slow = new SlowBitmapPixelProvider(testBitmap, true))
            {
                for (int x = 0; x < testBitmap.Width; ++x)
                {
                    for (int y = 0; y < testBitmap.Height; ++y)
                    {
                        NativeColor expected = TestingHelper.GetRandomColor();
                        slow.SetPixel(x, y, expected);

                        NativeColor actual = slow.GetPixel(x, y);

                        AssertEx.AreEqual<NativeColor>(expected, actual);
                    }
                }
            }
        }