コード例 #1
0
        public void LimitTopicAlias_Int_RangeValidated(int value, bool isValid)
        {
            var builder = new MqttClientConfigBuilder();

            Action act = () => builder.LimitTopicAlias(value);

            if (isValid)
            {
                act.Should().NotThrow();
            }
            else
            {
                act.Should().Throw <ArgumentOutOfRangeException>();
            }
        }