In nUnit, we can do something like this:
Expect(actualColleciton, EquivalentTo(expectedCollection));
and
Expect(actualCollection, EqualTo(expectedCollection));
Is there an equivalent in Pester?
I know I can do
$actualCollection | Should Be $expectedCollection
but it does NOT behave as you would expect.
Am I using the right syntax?
I am guessing that you want to compare the contents of your collection, not the pointer/address to the collection.
I think you could inspire from something like:
to do something like:
where $null indicates the lists are the same.