public virtual void GhostScriptIsDefaultSpecified() { ImageHandlerUtil imageHandlerUtil = new ImageHandlerUtil(); NUnit.Framework.Assert.IsNotNull(imageHandlerUtil.GetGsExec()); NUnit.Framework.Assert.IsTrue(imageHandlerUtil.IsVersionCommandExecutable(ImageHandlerUtil.GHOSTSCRIPT_KEYWORD )); }
public virtual void GhostScriptIsExplicitlySpecified() { String gsExec = SystemUtil.GetEnvironmentVariable(ImageHandlerUtil.GHOSTSCRIPT_ENVIRONMENT_VARIABLE); if (gsExec == null) { gsExec = SystemUtil.GetEnvironmentVariable(ImageHandlerUtil.GHOSTSCRIPT_ENVIRONMENT_VARIABLE_LEGACY); } ImageHandlerUtil imageHandlerUtil = new ImageHandlerUtil(); imageHandlerUtil.SetGsExec(gsExec); NUnit.Framework.Assert.IsNotNull(imageHandlerUtil.GetGsExec()); 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 )); }