diff --git a/X10D.Tests/src/Collections/EnumerableTests.cs b/X10D.Tests/src/Collections/EnumerableTests.cs index 5cd9dc0..40cb35e 100644 --- a/X10D.Tests/src/Collections/EnumerableTests.cs +++ b/X10D.Tests/src/Collections/EnumerableTests.cs @@ -9,14 +9,7 @@ public class EnumerableTests [TestMethod] public void EnumerableShuffledShouldBeDifferentOrder() { - var list = new List - { - 1, - 2, - 3, - 4, - 5 - }; + var list = new List(Enumerable.Range(1, 52)); // 52! chance of being shuffled to the same order var shuffled = new List(list); CollectionAssert.AreEqual(list, shuffled); diff --git a/X10D.Tests/src/Collections/ListTests.cs b/X10D.Tests/src/Collections/ListTests.cs index 135a485..53d5906 100644 --- a/X10D.Tests/src/Collections/ListTests.cs +++ b/X10D.Tests/src/Collections/ListTests.cs @@ -9,14 +9,7 @@ public class ListTests [TestMethod] public void ListShuffleShouldReorder() { - var list = new List - { - 1, - 2, - 3, - 4, - 5 - }; + var list = new List(Enumerable.Range(1, 52)); // 52! chance of being shuffled to the same order var shuffled = new List(list); CollectionAssert.AreEqual(list, shuffled); @@ -29,15 +22,7 @@ public class ListTests [TestMethod] public void ListRandomShouldReturnExistingObject() { - var list = new List - { - 1, - 2, - 3, - 4, - 5 - }; - + var list = new List(Enumerable.Range(1, 52)); // 52! chance of being shuffled to the same order int random = list.Random(); Assert.IsTrue(list.Contains(random));