I have tests which show the following xUnit.net output:
[xUnit.net 00:00:07.1166826] Expected: HashSet<License> [Comp.Licensing.Web.Model.License [5d8104ef-f707-4a40-9d68-463bf9f8b0f9], Comp.Licensing.Web.Model.License [d586fc23-bba6-474c-82a2-226484d7fb81]]
[xUnit.net 00:00:07.1172482] Actual: HashSet<License> [Comp.Licensing.Web.Model.License [d586fc23-bba6-474c-82a2-226484d7fb81], Comp.Licensing.Web.Model.License [5d8104ef-f707-4a40-9d68-463bf9f8b0f9]]
What I don't understand is why this test is failing, and seemingly the reason is that the HashSet is out of order.
Specifically, it appear that the Actual is exactly the same as the **Expected.
Actual:
HashSet<L> [Stuff [abc], Stuff [123]]
Expected:
HashSet<L> [Stuff [123], Stuff [abc]]
On the doc for HashSet, it says
A set is a collection that contains no duplicate elements, and whose elements are in no particular order.
Are my tests being run by something that's not using the same equality check for HashSet?