Powershell: naming convention for bool functions Powershell: naming convention for bool functions powershell powershell

Powershell: naming convention for bool functions


In PowerShell, there're approved verbs for a function. They are different from version to version, but you can get yours using the Get-Verb cmdlet.

As for your case, I could think of Assert-IsApple or Test-IsApple

For reference, here is the link to the official list of verbs for PowerShell.