tests/TMD.PowerShell.Tests.ps1

BeforeAll {
    # Import the module file
    if (Get-Module 'TMD.Common') {
        Remove-Module 'TMD.Common' -Force
    }
    Import-Module "TMD.Common" -Force
}

Describe 'Test-TMDIsRunningAction' {
    It 'Returns true when TMD is running' {
        $Global:TmdRunningAction = $true
        Test-TMDIsRunningAction | Should -BeTrue
        $Global:TmdRunningAction = $false
    }
    
    It 'Returns false if TmdRunningAction is null' {
        $Global:TmdRunningAction = $null
        Test-TMDIsRunningAction | Should -BeFalse
    }
}

# TODO: Add the rest of the tests