Tests/Private/Set-PowerShellWindowTitle.ps1
# Module: TeamsFunctions # Function: Test # Author: David Eberhardt # Updated: 05-AUG-2022 InModuleScope TeamsFunctions { BeforeAll { # } Describe -Tags ('Unit', 'Acceptance') "Function 'Set-PowerShellWindowTitle'" { BeforeEach { } It 'should set the Window Title for the Host UI' { Set-PowerShellWindowTitle -Title 'Test' $Host.UI.RawUI.WindowTitle | Should -Be 'Test' } It 'should throw' { #TODO how to get this function to throw? #{Set-PowerShellWindowTitle -Title ?} | Should -Throw } } } |