public void NextInteger(int min, int max) { var dataGenerator = new DataGenerator(min, max); int value = dataGenerator.NextInteger(); Assert.Between(value, min, max); }