I'm trying to write a unit test for a module that will give me a random list of numbers given certain criteria.
The particular test I'm writing is a reshuffle of the original sequence. I'm testing that
- The sequences are the same length
- The sequences have the same values
- The sequences are not in the same order
The problem with this is that sometimes the sequences are in the same order. What would be the best way to deal with this?
I'm using NUnit (but could use another test framework if it helps).