same is pretty well known to compare by reference in most testing framework, but the usability of reference comparison is low in powershell, and it's easy to mistake it for equality. Consider renaming the assertion to Assert-ReferenceEqual to make it less discoverable, and hence harder to use by accident.
same
is pretty well known to compare by reference in most testing framework, but the usability of reference comparison is low in powershell, and it's easy to mistake it for equality. Consider renaming the assertion toAssert-ReferenceEqual
to make it less discoverable, and hence harder to use by accident.