コード例 #1
0
        public void MaxNestingDepthShouldThrowIfSetToNonPositiveNumber()
        {
            Action testSubject = () => this.settings.MessageQuotas.MaxNestingDepth = 0;

            testSubject.ShouldThrow <ArgumentOutOfRangeException>().WithMessage(ODataErrorStrings.ExceptionUtils_CheckIntegerPositive(0), ComparisonMode.StartWith);
        }