Tests/SoftwareInstallManager.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#region import modules
$ThisModule = "$($MyInvocation.MyCommand -replace '\.Tests\.ps1$')"
$RequiredModules = $ThisModule
#Import-Module -Name $RequiredModules -Force -ErrorAction Stop
ipmo c:\Dropbox\GitRepos\SoftwareInstallManager\SoftwareInstallManager.psd1
#endregion

InModuleScope SoftwareInstallManager {
    describe 'Get-InstalledSoftware' {
        
        mock 'Write-Log' {
            return [pscustomobject]@{  }
        } -ModuleName 'SoftwareInstallManager'
        
        it 'outputs the right type of object' {
            Get-InstalledSoftware | should beofType 'System.Management.Automation.PSCustomObject'
        }
        
        it 'outputs the right number of objects' {
                
        }
    }
}