Skip to content

Commit

Permalink
Add Integration test to ensure invalid process ID throws expected Exc…
Browse files Browse the repository at this point in the history
…eption.
  • Loading branch information
blackcatsonly committed May 13, 2024
1 parent 0a39f01 commit 37b41b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/AutomationTests/AutomationIntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ public void Cleanup()
CleanupTestOutput();
}

[TestMethod]
[ExpectedException(typeof(AxeWindowsAutomationException))]
public void Scan_Integration_InvalidProcessId()
{
const int BogusProcessId = 47;
ScanIntegrationCore(sync: true, testAppPath: null, expectedErrorCount: 0, processId: BogusProcessId);
}

[DataTestMethod]
[DataRow(true)]
[DataRow(false)]
Expand Down

0 comments on commit 37b41b3

Please sign in to comment.