From 4dc09f504cdd64bafdc8314f84c315627c56228b Mon Sep 17 00:00:00 2001 From: James Truher Date: Tue, 30 Aug 2016 16:52:00 -0700 Subject: [PATCH] change throw message --- .../Microsoft.PowerShell.Utility/PowerShellData.tests.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/PowerShellData.tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/PowerShellData.tests.ps1 index e2ececef4..0b07ad294 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/PowerShellData.tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/PowerShellData.tests.ps1 @@ -5,7 +5,7 @@ try { Import-PowerShellDataFile -Path /SomeMissingDirectory -ErrorAction Stop - Throw "Execution OK" + Throw "Command did not throw exception" } catch { @@ -18,7 +18,7 @@ try { Import-PowerShellDataFile ${TESTDRIVE} -ErrorAction Stop - Throw "Execution OK" + Throw "Command did not throw exception" } catch { @@ -33,7 +33,7 @@ try { Import-PowerShellDataFile $path -ErrorAction Stop - Throw "Execution OK" + Throw "Command did not throw exception" } catch { @@ -47,7 +47,7 @@ try { Import-PowerShellDataFile $path -ErrorAction Stop - Throw "Execution OK" + Throw "Command did not throw exception" } catch {