Skip to content

Simplify unit tests for Assert() and Normalize() #36

@johlju

Description

@johlju

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
    } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThe issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHubhelp wantedThe issue is up for grabs for anyone in the community.testsThe issue or pull request is about tests only.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions