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
I often have the need to filter for objects that do not have a property specified or who have a falsey value for a property by doing something like the following:
Activity
BrucePay commentedon Apr 11, 2017
This is an issue with the Where-Object cmdlet not the language itself.
iSazonov commentedon Apr 12, 2017
Bruce Payette (@BrucePay) Thanks! Clear.
We have related Issue #2658 Do we want to really do this?
/cc Jason Shirk (@lzybkr)
SimonWahlin commentedon Mar 8, 2018
I think I could add a -Not parameterset to Where-Object.
I can't find any tests for Where-Object, where are those?
powercode commentedon Mar 8, 2018
I think it is a good idea.
iSazonov commentedon Mar 12, 2018
Simon Wåhlin (@SimonWahlin) I dont found
Where-Objecttest.I think we should place it in
test\powershell\Modules\Microsoft.PowerShell.Corefolder.SimonWahlin commentedon Mar 12, 2018
Thanks, I'll try to come up with a set of tests and place them there.
iSazonov commentedon Mar 12, 2018
Simon Wåhlin (@SimonWahlin) Please use new Pester 4 syntax in tests.
SimonWahlin commentedon Mar 12, 2018
Absolutely!