public void NextValueWithTypeThrowsExceptionWithNullMaximumTest() { var target = new RandomGenerator(); Action action = () => target.NextValue(typeof(int), 0, null); action.ShouldThrow<ArgumentNullException>(); }