Tests/Get-HPWFCacheUsage.Tests.ps1

Get-Module HPWriteManager | Remove-Module -Force
Push-Location ..
Import-Module HPWriteManager -Force
Pop-Location

Describe "Add-HPRFExclusion Tests" {

    Context 'Function Output' {
        It 'should return HKLM\\System\\CurrentControlSet\\Services\Tcpip' {
            Mock 'Add-HPRFExclusion' -MockWith { 'HKLM\\System\\CurrentControlSet\\Services\Tcpip' }
            Add-HPRFExclusion -ExclusionKey 'HKLM\\System\\CurrentControlSet\\Services\Tcpip' | Should -Contain 'HKLM\\System\\CurrentControlSet\\Services\Tcpip'
        }
        It 'should have type String as output' {
            Mock 'Add-HPRFExclusion' -MockWith { 'HKLM\\System\\CurrentControlSet\\Services\Tcpip' }
            Add-HPRFExclusion -ExclusionKey 'HKLM\\System\\CurrentControlSet\\Services\Tcpip' | Should -BeOfType String
        }
        It 'should return verbose output' {
            Mock 'Add-HPRFExclusion' -MockWith { 'HKLM\\System\\CurrentControlSet\\Services\Tcpip' }
            Add-HPRFExclusion -ExclusionKey 'HKLM\\System\\CurrentControlSet\\Services\Tcpip' -Verbose | Should -Contain 'Verbose'
        }
    }
}