[ci skip] Add test for Enumerable.Shuffled

This commit is contained in:
Oliver Booth 2022-04-20 16:47:15 +01:00
parent c4b82c2619
commit a645f56204
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 7 additions and 0 deletions

View File

@ -5,4 +5,11 @@ namespace X10D.Tests.Core;
[TestClass] [TestClass]
public partial class EnumerableTests public partial class EnumerableTests
{ {
[TestMethod]
[DataRow(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)]
public void Shuffled(params int[] source)
{
int[] shuffled = source.Shuffled().ToArray(); // ToArray forces type match
CollectionAssert.AreNotEqual(source, shuffled);
}
} }