Tests/Integration/xWindowsOptionalFeatureSet.config.ps1

param
(
    [Parameter(Mandatory = $true)]
    [System.String]
    $ConfigurationName
)

Configuration $ConfigurationName
{
    param
    (
        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [System.String[]]
        $WindowsOptionalFeatureNames,

        [ValidateSet('Present', 'Absent')]
        [System.String]
        $Ensure = 'Present',

        [ValidateNotNullOrEmpty()]
        [System.String]
        $LogPath
    )

    Import-DscResource -ModuleName 'xPSDesiredStateConfiguration'

    xWindowsOptionalFeatureSet xWindowsOptionalFeatureSet1
    {
        Name = $WindowsOptionalFeatureNames
        Ensure = $Ensure
        LogPath = $LogPath
        NoWindowsUpdateCheck = $false
        RemoveFilesOnDisable = $false
    }
}