Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

Commit f5359ac

Browse files
committed
Enabled ubuntu at appveyor
1 parent b9dd000 commit f5359ac

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

PostScriptValidatorTest/PostScriptValidatorTest.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.IO;
21
using NUnit.Framework;
32

43
namespace 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
}

appveyor.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
version: 1.0.{build}
2-
image: Visual Studio 2019
2+
image:
3+
- Visual Studio 2019
4+
- Ubuntu
35
skip_tags: true
4-
branches:
5-
only:
6-
- master
76
configuration: 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
137
build:
148
project: PostScriptValidator.sln
159
verbosity: minimal

0 commit comments

Comments
 (0)