tests/utility/New-MiniGameRunUtility.Tests.ps1
|
BeforeAll { $moduleRoot = Get-Item -Path $PSScriptRoot while ($moduleRoot.BaseName -NE "DevOpsScripts.MiniGame") { $moduleRoot = $moduleRoot.Parent } Remove-Module $moduleRoot -Force -ErrorAction SilentlyContinue Import-Module $moduleRoot -Force } Describe 'New-MiniGameRunUtility Tests' { It 'Should call New-MiniGameRunUtility without throwing an error' { # Act & Assert { New-MiniGameRunUtility } | 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 } } |