public void GivenImage_Returns_PixelCount()
        {
            var imageInfo = new ImageInfo();

            Assert.Equal(100, imageInfo.GetPixelCount(new Image {
                Width = 10, Height = 10
            }));
            Assert.Equal(1000000, imageInfo.GetPixelCount(new Image {
                Width = 1000, Height = 1000
            }));
        }
        public void ImageFromPath_Returns_PixelCount()
        {
            var imageInfo = new ImageInfo();
            var result    = imageInfo.GetPixelCount("images/ape.jpg");

            Assert.Equal(260652, result);
        }
        public void WrongPath_Throws_FileNotFoundException()
        {
            var imageInfo = new ImageInfo();

            Assert.Throws <FileNotFoundException>(() => imageInfo.GetPixelCount("images/ape-not-found.jpg"));
        }
        public void EmptyImagePath_Throws_ArgumentOutOfRangeException()
        {
            var imageInfo = new ImageInfo();

            Assert.Throws <ArgumentOutOfRangeException>(() => imageInfo.GetPixelCount(string.Empty));
        }