/// <summary> /// Verify the response of RopSetSearchCriteria ROP operation. /// </summary> /// <param name="setSearchCriteriaResponse">The response of RopSetSearchCriteria operation</param> private void VerifyRopSetSearchCriteria(RopSetSearchCriteriaResponse setSearchCriteriaResponse) { // Add the debug information. Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCFOLD_R119"); // Verify MS-OXCFOLD requirement: MS-OXCFOLD_R119. Site.CaptureRequirementIfAreEqual<uint>( Constants.SuccessCode, setSearchCriteriaResponse.ReturnValue, 119, @"[In RopSetSearchCriteria ROP Response Buffer] ReturnValue (4 bytes): The server returns 0x00000000 to indicate success."); }
/// <summary> /// Verify RopSetSearchCriteria Response /// </summary> /// <param name="ropSetSearchCriteriaResponse">The response of RopSetSearchCriteria request</param> /// <param name="inputHandleIndex">The field of InputHandleIndex in RopSetSearchCriteria request</param> private void VerifyRopSetSearchCriteriaResponse(RopSetSearchCriteriaResponse ropSetSearchCriteriaResponse, byte inputHandleIndex) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R698"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R698 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropSetSearchCriteriaResponse.RopId.GetType(), 698, @"[In RopSetSearchCriteria ROP Response Buffer] RopId (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R700"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R700 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopSetSearchCriteria, ropSetSearchCriteriaResponse.RopId, 700, @"[In RopSetSearchCriteria ROP Response Buffer] RopId (1 byte): For this operation[RopSetSearchCriteria], this field[RopId (1 byte)] is set to 0x30."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R701"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R701 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropSetSearchCriteriaResponse.InputHandleIndex.GetType(), 701, @"[In RopSetSearchCriteria ROP Response Buffer] InputHandleIndex (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R702"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R702 Site.CaptureRequirementIfAreEqual<byte>( inputHandleIndex, ropSetSearchCriteriaResponse.InputHandleIndex, 702, @"[In RopSetSearchCriteria 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_R703"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R703 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropSetSearchCriteriaResponse.ReturnValue.GetType(), 703, @"[In RopSetSearchCriteria ROP Response Buffer] ReturnValue (4 bytes): An unsigned integer."); }