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

ShouldCreateImageThumbnailLargeWidth() private method

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

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