Replacing error throw with Should block in tests.
Replacing error throw with Should block in tests.

PowerShell/xPSDesiredStateConfiguration,mgreenegit/xPSDesiredStateConfiguration,lfshr/xPSDesiredStateConfiguration