public void ShuffleMustWork(int count) { var arr = IEnumerableExtensions.Generate(count, () => Random.Next(-100, 100)); var result = arr.Shuffle(Random); Assert.False(object.ReferenceEquals(arr, result)); Assert.Equal(arr.Count(), result.Count()); Assert.True(arr.SequenceEqualWithoutOrder(result)); Assert.False(arr.SequenceEqual(result)); }