BloomTests.RuntimeImageProcessing.RuntimeImageProcessingTests.GetWideImage_ReturnsShrunkImageWithCorrectProportions C# (CSharp) Method

GetWideImage_ReturnsShrunkImageWithCorrectProportions() private method

        public void GetWideImage_ReturnsShrunkImageWithCorrectProportions()
        {
            using (var cache = new RuntimeImageProcessor(new BookRenamedEvent()) { TargetDimension = 100 })
            using (var file = MakeTempPNGImage(200,80))
            {
                using(var img = ImageUtils.GetImageFromFile(cache.GetPathToResizedImage(file.Path)))
                {
                    Assert.AreEqual(100, img.Width);
                    Assert.AreEqual(40, img.Height);
                }
            }
        }