Skip to content

Commit

Permalink
Add basic Unit Test for Certify.Service so it shows on 4.6.2 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnelson90 committed Dec 13, 2023
1 parent a5d39ab commit fc1efb6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/Certify.Tests/Certify.Core.Tests.Unit/CertifyServiceTests.cs
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");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ModulePaths>
<Include>
<ModulePath>.*Certify.*$</ModulePath>
<ModulePath>.*Plugin.*$</ModulePath>
<ModulePath>.*Plugin.Datastore.SQLite.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*Certify.Core.Tests.Unit.dll$</ModulePath>
Expand Down

0 comments on commit fc1efb6

Please sign in to comment.