Details of the scenario you tried and the problem that is occurring:
If domain name cannot be evaluated by Test-TargetResource it will return and array containing two $false.
This is because Test-TargetResource does not honor the return value and does not chnage code path.
The DSC configuration that is using the resource (as detailed as possible):
n/a
Version of the Operating System and PowerShell the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev
Details of the scenario you tried and the problem that is occurring: If domain name cannot be evaluated by Test-TargetResource it will return and array containing two $false.
This is because Test-TargetResource does not honor the return value and does not chnage code path.
The DSC configuration that is using the resource (as detailed as possible): n/a
Version of the Operating System and PowerShell the DSC Target Node is running: n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch: Dev