mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 02:45:41 +00:00
[ci skip] Add test for Enumerable.Shuffled
This commit is contained in:
parent
c4b82c2619
commit
a645f56204
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user