diff --git a/src/AutomationTests/AutomationIntegrationTests.cs b/src/AutomationTests/AutomationIntegrationTests.cs index 61f41fb97..6844078ad 100644 --- a/src/AutomationTests/AutomationIntegrationTests.cs +++ b/src/AutomationTests/AutomationIntegrationTests.cs @@ -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)]