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
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"
}
}
In WritingPesterTests.md, it should provide a more descriptive message, such as