mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 22:55:42 +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]
|
||||
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