Problem description
Suggest to add a parameter that will only do the check if the corresponding properties in BoundParameterList has the specified values.
That would for exampe allow this; only assert when Ensure is set to 'Present':
Assert-BoundParameter `
-BoundParameterList $properties `
-MutuallyExclusiveList1 @('Severity') `
-MutuallyExclusiveList2 @('MessageId') `
-IfEqualParameterList @{Ensure='Present'}
Verbose logs
How to reproduce
n/a
Expected behavior
n/a
Current behavior
n/a
Suggested solution
See above. Suggest to add it to both parameter sets; MutuallyExclusiveParameters and RequiredParameter.
Operating system the target node is running
PowerShell version and build the target node is running
Module version used
Problem description
Suggest to add a parameter that will only do the check if the corresponding properties in
BoundParameterListhas the specified values.That would for exampe allow this; only assert when
Ensureis set to'Present':Verbose logs
How to reproduce
n/a
Expected behavior
n/a
Current behavior
n/a
Suggested solution
See above. Suggest to add it to both parameter sets; MutuallyExclusiveParameters and RequiredParameter.
Operating system the target node is running
PowerShell version and build the target node is running
Module version used