public void RGBA_WriteFileAsBitmap_Success()
        {
            var bitmap     = BitmapFileHelper.ReadFileAsBitmap(RGBA_TestImageFullPath);
            var tempFolder = System.IO.Path.GetTempPath();
            var targetFile = Path.Combine(tempFolder, RGBA_TestFileName);

            BitmapFileHelper.SaveBitmapToFile(targetFile, bitmap);

            Assert.IsTrue(File.Exists(targetFile));
            var fileInfo = new FileInfo(targetFile);

            Assert.AreEqual(bitmap.GetBmpBytes().Length, fileInfo.Length);
        }
        public void RGBA_ReadFileAsBitmap_Success()
        {
            var bitmap = BitmapFileHelper.ReadFileAsBitmap(RGBA_TestImageFullPath);

            Assert.NotNull(bitmap);

            Assert.AreEqual(10, bitmap.Width);
            Assert.AreEqual(2, bitmap.Height);
            const int bytesPerPixel = (int)BitsPerPixelEnum.RGBA32 / 8;

            Assert.AreEqual(bytesPerPixel, bitmap.BytesPerPixel);
            Assert.AreEqual(10 * 2 * bytesPerPixel, bitmap.PixelData.Length);
            Assert.AreEqual(BitsPerPixelEnum.RGBA32, bitmap.BitsPerPixelEnum);
        }
        public void ReadFileAsBitmap_Success()
        {
            var bitmap = BitmapFileHelper.ReadFileAsBitmap(TestImageFullPath);

            Assert.NotNull(bitmap);

            Assert.AreEqual(10, bitmap.Width);
            Assert.AreEqual(2, bitmap.Height);
            Assert.AreEqual(3, bitmap.BytesPerPixel);
            Assert.AreEqual(10 * 2 * 3, bitmap.PixelData.Length);
            Assert.AreEqual(BitsPerPixelEnum.RGB24, bitmap.BitsPerPixelEnum);


            //Assert.Fail("not implemented");
        }