diff --git a/test/TabExpansion.Tests.ps1 b/test/TabExpansion.Tests.ps1 index 822f45801..32d387931 100644 --- a/test/TabExpansion.Tests.ps1 +++ b/test/TabExpansion.Tests.ps1 @@ -178,6 +178,17 @@ Describe 'TabExpansion Tests' { } } + Context 'Remove-GitBranch TabExpansion Tests' { + It 'Tab completes branches by positional parameter' { + $result = & $module GitTabExpansionInternal 'Remove-GitBranch mas' + $result | Should BeExactly 'master' + } + It 'Tab completes branches by named parameter' { + $result = & $module GitTabExpansionInternal 'Remove-GitBranch -IncludeUnmerged -WhatIf -Name mas' + $result | Should BeExactly 'master' + } + } + Context 'Vsts' { BeforeEach { [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssigments', '')]