Microsoft.Protocols.TestSuites.MS_OXCPRPT.Model.RopSetStreamSizeMethod C# (CSharp) Method

RopSetStreamSizeMethod() private method

private RopSetStreamSizeMethod ( bool isSizeIncreased, bool &isExtendedValueZero, bool &isLost, bool &isIncrease ) : void
isSizeIncreased bool
isExtendedValueZero bool
isLost bool
isIncrease bool
return void
        public static void RopSetStreamSizeMethod(bool isSizeIncreased, out bool isExtendedValueZero, out bool isLost, out bool isIncrease)
        {
            // This operation requires an opened stream
            Condition.IsTrue(isInitialized && isStreamOpenedSuccess);
            Condition.IsTrue(globalObj != ServerObjectType.Folder);

            isExtendedValueZero = false;
            isLost = false;
            isIncrease = false;
            if (isSizeIncreased)
            {
                isIncrease = true;
                ModelHelper.CaptureRequirement(
                   322,
                   "[In RopSetStreamSize ROP] The RopSetStreamSize ROP ([MS-OXCROPS] section 2.2.9.6) sets the size of a stream. ");

                ModelHelper.CaptureRequirement(
                 32801,
                 "[In RopSetStreamSize ROP Request Buffer] StreamSize: An integer that specifies the size, in bytes, of the stream. ");

                ModelHelper.CaptureRequirement(
                57705,
                "[In Processing RopSetStreamSize] The server sets the current size of the Stream object according to the value specified in the StreamSize field of the ROP request buffer. ");

                isExtendedValueZero = true;
                ModelHelper.CaptureRequirement(
                    57706,
                    "[In Processing RopSetStreamSize] If the size of the stream is increased, the server MUST set the values in the extended stream to 0x00.");
            }
            else
            {
                isLost = true;
                ModelHelper.CaptureRequirement(
                    57707,
                    "[In Processing RopSetStreamSize] If the size of the stream is decreased, the server discards the values that are beyond the end of the new size.");

                ModelHelper.CaptureRequirement(
                   322,
                   "[In RopSetStreamSize ROP] The RopSetStreamSize ROP ([MS-OXCROPS] section 2.2.9.6) sets the size of a stream. ");

                ModelHelper.CaptureRequirement(
                32801,
                "[In RopSetStreamSize ROP Request Buffer] StreamSize: An integer that specifies the size, in bytes, of the stream. ");
                ModelHelper.CaptureRequirement(
                57705,
                "[In Processing RopSetStreamSize] The server sets the current size of the Stream object according to the value specified in the StreamSize field of the ROP request buffer. ");
            }
        }