Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PostScriptValidator/PostScriptValidator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
11 changes: 10 additions & 1 deletion PostScriptValidatorTest/PostScriptValidatorTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.IO;
using NUnit.Framework;

namespace Tests
Expand All @@ -14,6 +13,7 @@ public void ShouldDetectCompliantPostscript()
Assert.True(result);
}
}

[Test]
public void ShouldDetectNonCompliantPostscript()
{
Expand All @@ -23,6 +23,7 @@ public void ShouldDetectNonCompliantPostscript()
Assert.False(result);
}
}

[Test]
public void ShouldNotFailOnMultipleDisposeCalls()
{
Expand All @@ -31,5 +32,13 @@ public void ShouldNotFailOnMultipleDisposeCalls()
postscriptValidator.Dispose();
postscriptValidator.Dispose();
}

[Test]
public void ShouldNotFailOnMultipleDisposeWithoutEvenUsingOnceCalls()
{
var postscriptValidator = new PostScriptValidator.PostScriptValidator();
postscriptValidator.Dispose();
postscriptValidator.Dispose();
}
}
}
13 changes: 8 additions & 5 deletions PostScriptValidatorTest/PostScriptValidatorTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="nunit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="pdfavalidator" Version="1.1.140" />
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="pdfavalidator" Version="1.3.28" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ using (var postscriptValidator = new PostScriptValidator.PostScriptValidator())

## Dependencies

Windows:
Windows:

* The nuget package brings every dependency
* The nuget package brings every dependency

Ubuntu:

Ubuntu:
```bash
sudo apt install ghostscript
```
11 changes: 6 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
version: 1.0.{build}
image: Visual Studio 2019
image:
- Ubuntu
- Visual Studio 2019
skip_tags: true
branches:
only:
- master
configuration: Release
before_build:
- ps: >-
nuget restore

. "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64\sn.exe" -k ./PostScriptValidator/PostScriptValidator.snk
install:
- cmd: cinst ghostscript
- sh: sudo apt install ghostscript -y
build:
project: PostScriptValidator.sln
verbosity: minimal
Expand Down