This repository was archived by the owner on Sep 20, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +29
-15
lines changed
Expand file tree Collapse file tree 5 files changed +29
-15
lines changed Original file line number Diff line number Diff line change 4646 </ItemGroup >
4747
4848 <ItemGroup >
49- <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.9.6 " >
49+ <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.9.8 " >
5050 <PrivateAssets >all</PrivateAssets >
5151 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
5252 </PackageReference >
Original file line number Diff line number Diff line change 1- using System . IO ;
21using NUnit . Framework ;
32
43namespace Tests
@@ -14,6 +13,7 @@ public void ShouldDetectCompliantPostscript()
1413 Assert . True ( result ) ;
1514 }
1615 }
16+
1717 [ Test ]
1818 public void ShouldDetectNonCompliantPostscript ( )
1919 {
@@ -23,6 +23,7 @@ public void ShouldDetectNonCompliantPostscript()
2323 Assert . False ( result ) ;
2424 }
2525 }
26+
2627 [ Test ]
2728 public void ShouldNotFailOnMultipleDisposeCalls ( )
2829 {
@@ -31,5 +32,13 @@ public void ShouldNotFailOnMultipleDisposeCalls()
3132 postscriptValidator . Dispose ( ) ;
3233 postscriptValidator . Dispose ( ) ;
3334 }
35+
36+ [ Test ]
37+ public void ShouldNotFailOnMultipleDisposeWithoutEvenUsingOnceCalls ( )
38+ {
39+ var postscriptValidator = new PostScriptValidator . PostScriptValidator ( ) ;
40+ postscriptValidator . Dispose ( ) ;
41+ postscriptValidator . Dispose ( ) ;
42+ }
3443 }
3544}
Original file line number Diff line number Diff line change 77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.9.6 " >
10+ <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.9.8 " >
1111 <PrivateAssets >all</PrivateAssets >
1212 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1313 </PackageReference >
14- <PackageReference Include =" nunit" Version =" 3.11.0" />
15- <PackageReference Include =" NUnit3TestAdapter" Version =" 3.11.0" />
16- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.9.0" />
17- <PackageReference Include =" pdfavalidator" Version =" 1.1.140" />
14+ <PackageReference Include =" nunit" Version =" 3.12.0" />
15+ <PackageReference Include =" NUnit3TestAdapter" Version =" 3.16.1" >
16+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
17+ <PrivateAssets >all</PrivateAssets >
18+ </PackageReference >
19+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.5.0" />
20+ <PackageReference Include =" pdfavalidator" Version =" 1.3.28" />
1821 </ItemGroup >
1922
2023 <ItemGroup >
Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ using (var postscriptValidator = new PostScriptValidator.PostScriptValidator())
2222
2323## Dependencies
2424
25- Windows:
25+ Windows:
2626
27- * The nuget package brings every dependency
27+ * The nuget package brings every dependency
28+
29+ Ubuntu:
2830
29- Ubuntu:
3031``` bash
3132sudo apt install ghostscript
3233```
Original file line number Diff line number Diff line change 11version : 1.0.{build}
2- image : Visual Studio 2019
2+ image :
3+ - Ubuntu
4+ - Visual Studio 2019
35skip_tags : true
4- branches :
5- only :
6- - master
76configuration : Release
87before_build :
98- ps : >-
109 nuget restore
1110
12- . "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64\sn.exe" -k ./PostScriptValidator/PostScriptValidator.snk
11+ install :
12+ - cmd : cinst ghostscript
13+ - sh : sudo apt install ghostscript -y
1314build :
1415 project : PostScriptValidator.sln
1516 verbosity : minimal
You can’t perform that action at this time.
0 commit comments