I have many Action
objects with a property long Timestamp
. 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 way or a extension\LINQ\whatever way to perform this?
Note that it's target for a unit test class, so get crazy. I don't care about performance, readability and etc.