You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve Pester Expected Throw Message in Example #2971
it "Get-Item on a nonexisting file should have error PathNotFound" {
try
{
get-item"ThisFileCannotPossiblyExist"-ErrorAction Stop
throw"Expected an exception throw, but no Exception was thrown."
}
catch
{
$_.FullyQualifiedErrorId| should be "PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand"
}
}
Activity
mirichmo commentedon Feb 15, 2017
I'm closing this since I abandoned the merge since no change is required.