BeOfType can be used to ensure a value is of a specific .NET type. It is equivalent to the -is operator:
[IPAddress]"1.2.3.4" | Should -BeOfType [IPAddress]
BeOfType can be used to ensure a value is of a specific .NET type. It is equivalent to the -is operator:
[IPAddress]"1.2.3.4" | Should -BeOfType [IPAddress]