Public/Convert/Convert-HexToARGB.Tests.ps1
$function = Get-Command -Name Convert-HexToARGB Describe 'Convert-HexToARGB Tests' { Context 'Parameters for Convert-HexToARGB'{ It 'Has a parameter called Hex_Val' { $function.Parameters.Keys.Contains('Hex_Val') | Should Be 'True' } It 'Hex_Val Parameter is Correctly Identified as being Mandatory' { $function.Parameters.Hex_Val.Attributes.Mandatory | Should be 'True' } It 'Hex_Val Parameter is of String Type' { $function.Parameters.Hex_Val.ParameterType.FullName | Should be 'System.String' } } } |