Public/Convert/Convert-ARGBToHex.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 Convert-ARGBToHex
Describe 'Convert-ARGBToHex Tests' {
   Context 'Parameters for Convert-ARGBToHex'{
It 'Has a parameter called RGB_Val' {
            $function.Parameters.Keys.Contains('RGB_Val') | Should Be 'True'
            }
        It 'RGB_Val Parameter is Correctly Identified as being Mandatory' {
            $function.Parameters.RGB_Val.Attributes.Mandatory | Should be 'True'
            }
        It 'RGB_Val Parameter is of String Type' {
            $function.Parameters.RGB_Val.ParameterType.FullName | Should be 'System.String'
            }

      }

 }