public void NextValueWithTypeThrowsExceptionWithNullTypeTest() { var target = Substitute.For<IRandomGenerator>(); Action action = () => target.NextValue((Type) null); action.ShouldThrow<ArgumentNullException>(); } }