public virtual void ImageMagickIsDefaultSpecified() { ImageHandlerUtil imageHandlerUtil = new ImageHandlerUtil(); NUnit.Framework.Assert.IsNotNull(imageHandlerUtil.GetCompareExec()); NUnit.Framework.Assert.IsTrue(imageHandlerUtil.IsVersionCommandExecutable(ImageHandlerUtil.GHOSTSCRIPT_KEYWORD )); }
public virtual void ImageMagickIsExplicitlySpecified() { String compareExec = SystemUtil.GetEnvironmentVariable(ImageHandlerUtil.MAGICK_COMPARE_ENVIRONMENT_VARIABLE ); if (compareExec == null) { compareExec = SystemUtil.GetEnvironmentVariable(ImageHandlerUtil.MAGICK_COMPARE_ENVIRONMENT_VARIABLE_LEGACY ); } ImageHandlerUtil imageHandlerUtil = new ImageHandlerUtil(); imageHandlerUtil.SetCompareExec(compareExec); NUnit.Framework.Assert.IsNotNull(imageHandlerUtil.GetCompareExec()); NUnit.Framework.Assert.IsTrue(imageHandlerUtil.IsVersionCommandExecutable(ImageHandlerUtil.MAGICK_COMPARE_KEYWORD )); }