1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:45:42 +00:00

[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

View File

@ -5,4 +5,11 @@ namespace X10D.Tests.Core;
[TestClass]
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);
}
}