public void ShouldDetectCompliantPostscript() { using (var postscriptValidator = new PostScriptValidator.PostScriptValidator()) { var result = postscriptValidator.Validate(@"./TestData/valid.ps"); Assert.True(result); } }
public void ShouldNotFailOnMultipleDisposeCalls() { var postscriptValidator = new PostScriptValidator.PostScriptValidator(); postscriptValidator.Validate(@"./TestData/valid.ps"); postscriptValidator.Dispose(); postscriptValidator.Dispose(); }