tests/utility/New-MiniGameRunUtility.Tests.ps1

BeforeAll {
    $moduleRoot = Get-Item -Path $PSScriptRoot 
    while ($moduleRoot.BaseName -NE "tests") {
        $moduleRoot = $moduleRoot.Parent
    }

    $env:PESTER_TEST__MODULE_ROOT = $moduleRoot
    . $env:PESTER_TEST__MODULE_ROOT\BeforeAll.ps1
}

AfterAll {
    . $env:PESTER_TEST__MODULE_ROOT\AfterAll.ps1
}

Describe 'New-MiniGame Tests' {
    It 'Should call New-MiniGame without throwing an error' {
        # Act & Assert
        { New-MiniGame } | Should -Not -Throw
    }
}

Describe 'New-MiniGameCollisionUtility Tests' {
    It 'Should call New-MiniGameCollisionUtility without throwing an error' {
        # Act & Assert
        { New-MiniGameCollisionUtility Radius } | Should -Not -Throw
    }
}

Describe 'New-MiniGameDrawUtility Tests' {
    It 'Should call New-MiniGameDrawUtility without throwing an error' {
        # Act & Assert
        { New-MiniGameDrawUtility } | Should -Not -Throw
    }
}

Describe 'New-MiniGameObjectUtility Tests' {
    It 'Should call New-MiniGameObjectUtility without throwing an error' {
        # Act & Assert
        { New-MiniGameObjectUtility } | Should -Not -Throw
    }
}

Describe 'New-MiniGameSoundUtility Tests' {
    It 'Should call New-MiniGameSoundUtility without throwing an error' {
        # Act & Assert
        { New-MiniGameSoundUtility } | Should -Not -Throw
    }
}