public void NextValueWithTypeThrowsExceptionWithNonNumericMaximumTest() { var target = new RandomGenerator(); Action action = () => target.NextValue(typeof(int), 0, Guid.NewGuid().ToString()); action.ShouldThrow<FormatException>(); }