public void NextValueWithTypeAndMaxThrowsExceptionWithNullGeneratorTest() { var max = Environment.TickCount; IRandomGenerator target = null; Action action = () => target.NextValue(typeof(int), max); action.ShouldThrow<ArgumentNullException>(); }