Tests/Edit-UPN.Tests.ps1

<# Get-Module JBOADS | Remove-Module -Force
Push-Location ..
Import-Module .\JBOADS.psm1 -Force
Pop-Location
$FunctionName = ($MyInvocation.MyCommand.Name).Split(".")[0]
 
$JsonMockData = Get-Content -Path .\JBOADS\Tests\MockedTestObjects.json -Raw
$Mocks = ConvertFrom-Json $JsonMockData
 
Describe "$FunctionName Tests" {
    Context 'Function Output' {
        $ContextMock = $Mocks.'Edit-UPN'.Parameters
        Mock Edit-UPN { $ContextMock }
            It 'should return verbose output' {
                Mock 'Edit-UPN' -MockWith { $ContextMock }
                Edit-UPN -Verbose | Should -Contain 'Verbose'
            }
    }
}
 #>