/// <summary> /// Verify RopFastTransferDestinationPutBuffer Response /// </summary> /// <param name="ropFastTransferDestinationPutBufferResponse">The response of RopFastTransferDestinationPutBuffer request</param> /// <param name="inputHandleIndex">The field of InputHandleIndex in RopFastTransferDestinationPutBuffer request</param> private void VerifyRopFastTransferDestinationPutBufferResponse(RopFastTransferDestinationPutBufferResponse ropFastTransferDestinationPutBufferResponse, byte inputHandleIndex) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3690"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3690 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropFastTransferDestinationPutBufferResponse.RopId.GetType(), 3690, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer] RopId (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3705"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3705 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropFastTransferDestinationPutBufferResponse.RopId.GetType(), 3705, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer] Reserved (1 byte): Reserved."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3692"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3692 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopFastTransferDestinationPutBuffer, ropFastTransferDestinationPutBufferResponse.RopId, 3692, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer, RopId (1 byte):] For this operation[RopFastTransferDestinationPutBuffer] this field is set to 0x54."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3693"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3693 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropFastTransferDestinationPutBufferResponse.InputHandleIndex.GetType(), 3693, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer]InputHandleIndex (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3694"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3694 Site.CaptureRequirementIfAreEqual<byte>( inputHandleIndex, ropFastTransferDestinationPutBufferResponse.InputHandleIndex, 3694, @"[In RopFastTransferDestinationPutBuffer 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_R3696"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3696 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropFastTransferDestinationPutBufferResponse.ReturnValue.GetType(), 3696, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer] ReturnValue (4 bytes): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3698"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3698 Site.CaptureRequirementIfAreEqual<Type>( typeof(ushort), ropFastTransferDestinationPutBufferResponse.TransferStatus.GetType(), 3698, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer]TransferStatus (2 bytes): An enumeration."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3699,TransferStatus's value:{0}", ropFastTransferDestinationPutBufferResponse.TransferStatus); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3699 bool isVerifyR3699 = (ropFastTransferDestinationPutBufferResponse.TransferStatus & (ushort)TransferStatus.Error) == (ushort)TransferStatus.Error || (ropFastTransferDestinationPutBufferResponse.TransferStatus & (ushort)TransferStatus.Done) == (ushort)TransferStatus.Done || (ropFastTransferDestinationPutBufferResponse.TransferStatus & (ushort)TransferStatus.Partial) == (ushort)TransferStatus.Partial; Site.CaptureRequirementIfIsTrue( isVerifyR3699, 3699, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer, TransferStatus (2 bytes):] The possible values[the value of Error is 0x0000, the value of Partial is 0x0001 and the value of Done is 0x0003] for this enumeration are specified in [MS-OXCFXICS] section 2.2.3.1.2.2."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3701"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3701 Site.CaptureRequirementIfAreEqual<Type>( typeof(ushort), ropFastTransferDestinationPutBufferResponse.InProgressCount.GetType(), 3701, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer] InProgressCount (2 bytes): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3703"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3703 Site.CaptureRequirementIfAreEqual<Type>( typeof(ushort), ropFastTransferDestinationPutBufferResponse.TotalStepCount.GetType(), 3703, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer] TotalStepCount (2 bytes): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3706,the Reserved's value:{0}", ropFastTransferDestinationPutBufferResponse.Reserved); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3706 bool isVerifyR3706 = (typeof(byte) == ropFastTransferDestinationPutBufferResponse.Reserved.GetType()) && (ropFastTransferDestinationPutBufferResponse.Reserved == ReservedOneByte); Site.CaptureRequirementIfIsTrue( isVerifyR3706, 3706, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer, Reserved (1 byte):] The server MUST set this field to 0x00."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3707"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3707 Site.CaptureRequirementIfAreEqual<Type>( typeof(ushort), ropFastTransferDestinationPutBufferResponse.BufferUsedSize.GetType(), 3707, @"[In RopFastTransferDestinationPutBuffer ROP Response Buffer]BufferUsedSize (2 bytes): An unsigned integer."); }