Private/Test-MenuSeparator.ps1

1
2
3
4
5
6
function Test-MenuSeparator([Parameter(Mandatory)] $MenuItem) {
    $Separator = Get-MenuSeparator

    # Separator is a singleton and we compare it by reference
    Return $MenuItem -eq $Separator
}