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