Tests/Get-InactiveUser.Tests.ps1

<# Get-Module JBOADS | Remove-Module -Force
Push-Location ..
Import-Module JBOADS -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.'Get-InactiveUser'.Dataset
        Mock 'Get-InactiveUser' -MockWith { $ContextMock }
 
        It "returns the correct output" {
            (Get-InactiveUser -TimeSpan 30).Name | Should -Be $Mocks.'Get-InactiveUser'.Dataset.Name
        }
    }
 
}
 #>