I have many Action objects with the long Timestamp property. I want to do something like this:
Assert.IsTrue(a1.Timestamp < a2.Timestamp < a3.Timestamp < ... < an.Timestamp);
Unfortunately, this syntax is illegal. Is there a built-in method or extension \ LINQ \ any way to accomplish this?
Note that it targets the unit test class, so go crazy. I don't care about performance, readability, etc.
source share