Private/Assert-Legislator.ps1

1
2
3
4
5
6
7
8
9
10
11
function Assert-Legislator
{
    param (
        [string]$MemberType
    )

    if (-not $Legislator)
    {
        throw "$MemberType only allowed in interface declarations"
    }
}