/// <summary> /// Verify the RopCommitStream operation related requirements. /// </summary> /// <param name="ropCommitStreamResponse">The RopCommitStream response buffer structure.</param> private void VerifyRopCommitStream(RopCommitStreamResponse ropCommitStreamResponse) { // Since the RopCommitStream ROP response was parsed successfully, MS-OXCPRPT_R56902 can be captured directly. Site.CaptureRequirement( 56902, @"[In Processing RopCommitStream] The server responds with a RopCommitStream ROP response buffer."); // CPRPTErrorCode.None indicates the operation is performed successfully. if (ropCommitStreamResponse.ReturnValue.Equals((uint)CPRPTErrorCode.None)) { // If this operation is performed successfully, that means this operation is valid on Stream objects. Site.CaptureRequirement( 30601, @"[In RopCommitStream ROP] This operation is valid on Stream objects."); } }
/// <summary> /// Verify RopCommitStream Response /// </summary> /// <param name="ropCommitStreamResponse">The response of RopCommitStream request</param> /// <param name="inputHandleIndex">The field of InputHandleIndex in RopCommitStream request</param> private void VerifyRopCommitStreamResponse(RopCommitStreamResponse ropCommitStreamResponse, byte inputHandleIndex) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3267"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3267 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropCommitStreamResponse.RopId.GetType(), 3267, @"[In RopCommitStream ROP Response Buffer]RopId (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3269"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3269 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopCommitStream, ropCommitStreamResponse.RopId, 3269, @"[In RopCommitStream ROP Response Buffer,RopId (1 byte)]For this operation[RopCommitStream], this field is set to 0x5D."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3270"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3270 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropCommitStreamResponse.InputHandleIndex.GetType(), 3270, @"[In RopCommitStream ROP Response Buffer]InputHandleIndex (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3271"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3271 Site.CaptureRequirementIfAreEqual<byte>( inputHandleIndex, ropCommitStreamResponse.InputHandleIndex, 3271, @"[In RopCommitStream ROP Response Buffer,InputHandleIndex (1 byte)]This index MUST be set to the value specified in the InputHandleIndex field in the request."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3273"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3273 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropCommitStreamResponse.ReturnValue.GetType(), 3273, @"[In RopCommitStream ROP Response Buffer]ReturnValue (4 bytes): An unsigned integer."); }