I wrote a unit test in pester where it verifies the result against the returned object (a hash table) created using PSCustomObject, but I am not sure how to definite it:
$result = get-dataFromOverThere
$result | Should -Be [PSObject]
after invoking pester, I get:
Expected '[PSCustomObject]', but got @{ name = "bob"; company = "vance refrigeration"}.
it technically was the correct value I wanted, but not sure how to definite the last portion of the test