Public/Set/Set-ISETheme.Tests.ps1
$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' } } } |