Default parameter type is figured out in the code, but parameter for it is not surfaced to Should which is unfortunate when you check $Path = (Get-DefaultPath) because our assertion will pass for both $Path = (Get-DefaultPath) and $Path = "(Get-DefaultPath)".
But if the DefaultValueType was surfaced then we could say the the value should be Expression, not a string, and we would be able to distinguish those two.
Default parameter type is figured out in the code, but parameter for it is not surfaced to Should which is unfortunate when you check
$Path = (Get-DefaultPath)because our assertion will pass for both$Path = (Get-DefaultPath)and$Path = "(Get-DefaultPath)".But if the DefaultValueType was surfaced then we could say the the value should be Expression, not a string, and we would be able to distinguish those two.