public void ParsePngDirectory_NullDirectory_NoMetadata()
        {
            PngDirectory pngDirectory = null;
            var          photo        = new Photo("");

            pngDirectory.Parse(photo);

            Assert.Equal(0, photo.Height);
            Assert.Equal(0, photo.Width);
        }
        public void ParsePngDirectory_ValidDirectory_AllMetadata()
        {
            var pngDirectory = new PngDirectory(PngChunkType.bKGD);
            var photo        = new Photo("");

            var height = 32;
            var width  = 32;

            pngDirectory.Set(PngDirectory.TagImageHeight, height);
            pngDirectory.Set(PngDirectory.TagImageWidth, width);

            pngDirectory.Parse(photo);

            var actualHeight = photo.Height;
            var actualWidth  = photo.Width;

            Assert.Equal(height, actualHeight);
            Assert.Equal(width, actualWidth);
        }