public void LimitUnacknowledgedPublications_Int_RangeValidated(int value, bool isValid) { var builder = new MqttClientConfigBuilder(); Action act = () => builder.LimitUnacknowledgedPublications(value); if (isValid) { act.Should().NotThrow(); } else { act.Should().Throw <ArgumentOutOfRangeException>(); } }