public void NextValueWithTypeThrowsExceptionWithNullGeneratorTest() { IRandomGenerator target = null; Action action = () => target.NextValue(typeof(int)); action.ShouldThrow<ArgumentNullException>(); }