xActiveDirectory: Replace helper function ThrowInvalidArgumentError #317
Labels
enhancement
The issue is an enhancement request.
good first issue
The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
The helper function
ThrowInvalidArgumentError
should be replaced to use the new helper function New-InvalidArgumentException.Unit tests should also be replaced to test the actual error message, like below.
https://github.com/PowerShell/xActiveDirectory/blob/91a53534aa3708ffbb461537f502721fad3ac0ae/Tests/Unit/MSFT_xADComputer.Tests.ps1#L921
The text was updated successfully, but these errors were encountered: