tests/TestHelper.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

function Get-ValidDestination
{
    Write-Output @{ DestinationPath = "${TestDrive}\mymodule" }
}

function Get-ValidModuleName
{
    Write-Output @{ ModuleName = "mymodule" }
}

function Get-ValidDescription
{
    Write-Output @{ Description = "My description!" }
}

function Get-ValidMandatoryArgs
{
    Write-Output ((Get-ValidDestination) `
        + (Get-ValidModuleName) `
        + (Get-ValidDescription))
}