The unit tests for Assert() and Normalize() could be simplified by mocking the method GetDesiredState in the instance object.
$script:mockInstance |
Add-Member -Force -MemberType 'ScriptMethod' -Name 'GetDesiredState' -Value {
# Optional return value
}
The unit tests for
Assert()andNormalize()could be simplified by mocking the methodGetDesiredStatein the instance object.