Public/Import/Import-GroupISETheme.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$function = Get-Command -Name Import-GroupISEThemes
Describe 'Import-GroupISEThemes Tests' {
   Context 'Parameters for Import-GroupISEThemes'{
It 'Has a parameter called Directory' {
            $function.Parameters.Keys.Contains('Directory') | Should Be 'True'
            }
        It 'Directory Parameter is Correctly Identified as being Mandatory' {
            $function.Parameters.Directory.Attributes.Mandatory | Should be 'True'
            }
        It 'Directory Parameter is of String Type' {
            $function.Parameters.Directory.ParameterType.FullName | Should be 'System.String'
            }

      }

 }