This repository was archived by the owner on Sep 20, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
Expand file tree Collapse file tree 2 files changed +13
-10
lines changed 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 11version : 1.0.{build}
2- image : Visual Studio 2019
2+ image :
3+ - Visual Studio 2019
4+ - Ubuntu
35skip_tags : true
4- branches :
5- only :
6- - master
76configuration : Release
8- before_build :
9- - ps : >-
10- nuget restore
11-
12- . "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64\sn.exe" -k ./PostScriptValidator/PostScriptValidator.snk
137build :
148 project : PostScriptValidator.sln
159 verbosity : minimal
You can’t perform that action at this time.
0 commit comments