I would like to write a unit test to check HashSet
in C# MSTest to cover ICollection
of my class, like this:
public ICollection<ObjectClass> Object { get; private set; } = new HashSet<ObjectClass>();
Does anybody know how to Assert this section of the code?
Edit1: I didn't want to ignore or exclude auto-property initializers I am looking a way to test them