Public/Set/Set-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
30
31
32
33
34
35
36
37
38
39
$function = Get-Command -Name Set-ISETheme
Describe 'Set-ISETheme Tests' {
   Context 'Parameters for Set-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'
            }

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

      }

 }