Blog.Common.Utils.Tests.Helpers.ImageHelperTest.ShouldCreateImageThumbnailSmallWidth C# (CSharp) Method

ShouldCreateImageThumbnailSmallWidth() private method

private ShouldCreateImageThumbnailSmallWidth ( ) : void
return void
        public void ShouldCreateImageThumbnailSmallWidth()
        {
            var result = _imageHelper.CreateThumbnail(_rootPath + @"\TestImages\Jpg_Image_Small.jpg", _rootPath + @"\TestImages\New\", "tn_");

            Assert.IsTrue(result);
            Assert.IsTrue(File.Exists(_rootPath + @"\TestImages\New\tn_Jpg_Image_Small.jpg"));
            Assert.AreEqual(394, Image.FromFile(_rootPath + @"\TestImages\New\tn_Jpg_Image_Small.jpg").Width);
            Assert.AreEqual(500, Image.FromFile(_rootPath + @"\TestImages\New\tn_Jpg_Image_Small.jpg").Height);
        }