public void NextValueThrowsExceptionWithMinimumAndMaximumWhenGeneratorIsNullTest() { RandomGenerator target = null; Action action = () => target.NextValue(1, 10); action.ShouldThrow<ArgumentNullException>(); }