Public/Remove/Remove-ISETheme.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 Remove-ISETheme
Describe 'Remove-ISETheme Tests' {
   Context 'Parameters for Remove-ISETheme'{
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 'False'
            }
        It 'ThemeName Parameter is of String Type' {
            $function.Parameters.ThemeName.ParameterType.FullName | Should be 'System.String'
            }

      }

 }