-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic Unit Test for Certify.Service so it shows on 4.6.2 coverage
- Loading branch information
1 parent
a5d39ab
commit fc1efb6
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/Certify.Tests/Certify.Core.Tests.Unit/CertifyServiceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Threading.Tasks; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace Certify.Core.Tests.Unit | ||
{ | ||
[TestClass] | ||
public class CertifyServiceTests | ||
{ | ||
[TestMethod, Description("Validate that Service Program Main() does not start with bad args")] | ||
public async Task TestProgramMainFails() | ||
{ | ||
var exitCode = Certify.Service.Program.Main(null); | ||
|
||
await Task.Delay(5000); | ||
|
||
Assert.AreEqual(exitCode, 1067, "Unexpected exit code"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters