Пример #1
0
 public MatchStructure(MatchStructure org)
 {
     this.matchResult = org.matchResult;
     this.responseJsonType = org.responseJsonType;
     this.jsonEntryNotFound = new HashSet<string>(org.jsonEntryNotFound);
     this.xmlItemNotFound = new HashSet<string>(org.xmlItemNotFound);
     this.subListItemMatchResult = new Dictionary<string, MatchStructure>(org.subListItemMatchResult);
     this.isSubItemNotMatch = org.isSubItemNotMatch;
 }
Пример #2
0
 private void mergeListMatchResult(MatchStructure orgMatchStructure, bool isInList)
 {
     if (isInList)
     {
         if (this.matchStruct.matchResult < orgMatchStructure.matchResult)
         {
             this.matchStruct = orgMatchStructure;
         }
         if (orgMatchStructure.matchResult == MatchResult.MATCHED &&
             this.matchStruct.matchResult != MatchResult.TYPE_NOT_MATCH)
         {
             this.matchStruct = orgMatchStructure;
         }
     }
 }