public void IntegerGenerator_Value_ProvidesMassiveOfIntegersInSpecifiedRange() { int size = 1000; IntegerGenerator intGen = new IntegerGenerator(1, 3); int[] massive = new int[size]; for (int i = 0; i < size; i++) { massive[i] = intGen.Value(); } var usedNumbers = massive.Distinct().OrderBy(i => i).ToList(); Assert.AreEqual(1, usedNumbers[0]); Assert.AreEqual(2, usedNumbers[1]); Assert.AreEqual(3, usedNumbers[2]); }