initial Commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
function Assert-ConfigurationDataExpressionMinimumArgumentCount {
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]
|
||||
$Name,
|
||||
|
||||
[AllowNull()]
|
||||
[object[]]
|
||||
$Arguments,
|
||||
|
||||
[Parameter(Mandatory=$true)]
|
||||
[int]
|
||||
$Count
|
||||
)
|
||||
|
||||
if(@($Arguments).Count -lt $Count){
|
||||
throw "Function [$Name] expects at least [$Count] argument(s), but received [$(@($Arguments).Count)]."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user