private bool AttachmentsMatch(IMigrationFileAttachment attachment1, IMigrationFileAttachment attachment2, out WitDiffAttachment diffAttachment)
 {
     if (!string.Equals(attachment1.Name, attachment2.Name, StringComparison.Ordinal))
     {
         diffAttachment = new WitDiffAttachment(attachment1.Name, "Name", attachment1.Name, attachment2.Name);
         return(false);
     }
     if (!string.Equals(attachment1.Comment, attachment2.Comment, StringComparison.Ordinal))
     {
         diffAttachment = new WitDiffAttachment(attachment1.Name, "Comment", attachment1.Comment, attachment2.Comment);
         return(false);
     }
     if (attachment1.Length != attachment2.Length)
     {
         diffAttachment = new WitDiffAttachment(attachment1.Name, "Length", attachment1.Length.ToString(), attachment2.Length.ToString());
         return(false);
     }
     diffAttachment = null;
     return(true);
 }
 public void AddMistmatchedAttachment(WitDiffAttachment diffAttachment)
 {
     m_mismatchedAttachments.Add(diffAttachment);
 }