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