How to set a collection of elements in a specific order? I just want to make sure all the items are in the list.
I heard about CollectionAssert , but I don't see any method that would do what I want.
My object is as follows:
public class Vector2{ public float X {get; set;} public float Y {get; set;} }
Assert - I need something like this:
CollectionAssert.ContainsAll(mesh.GetPolygonVertices(0), aListOfVertices);
mesh.GetPolygonVertices(int) returns a List<Vector2> and aListOfVertices contains all returned but not guaranteed execution.
source share