public void FillInt64Array_ShouldProduceDesiredResults_ForUnboundedInvocation() { // Arrange. var arrayLength = 270; var array = new Int64[arrayLength]; using (var randomNumberGenerator = RandomNumberGenerator.Create()) { // Act. randomNumberGenerator.FillInt64Array(array); // Assert. array.Length.Should().Be(arrayLength); array.GroupBy(value => value).Any(group => group.Count() > 2).Should().BeFalse(); } }