Tests/LMAccount.Tests.ps1

BeforeAll {
    Import-Module $Module -Force
}

Describe 'Connect-LMAccount' {
    It 'Connects successfully with admin level credentials' {
        { Connect-LMAccount -AccessId $AccessId -AccessKey $AccessKey -AccountName $AccountName -DisableConsoleLogging -ErrorAction Stop } | Should -Not -Throw
    }
}

Describe 'Disconnect-LMAccount' {
    It 'Disconnect should remove auth variables from scope without throwing exception' {
        { Disconnect-LMAccount -ErrorAction Stop } | Should -Not -Throw

    }
}