Public/Get/Get-ISETheme.Tests.ps1

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

It 'Has a parameter called ThemeName' {
            $function.Parameters.Keys.Contains('ThemeName') | Should Be 'True'
            }
        It 'ThemeName Parameter is Correctly Identified as being Mandatory' {
            $function.Parameters.ThemeName.Attributes.Mandatory | Should be 'True'
            }
        It 'ThemeName Parameter is of String Type' {
            $function.Parameters.ThemeName.ParameterType.FullName | Should be 'System.String'
            }

      }

 }