private void VerifyDocuments(DynamicAnalysisDataReader reader, ImmutableArray <DynamicAnalysisDocument> documents, params string[] expected) { var sha1 = new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460"); var actual = from d in documents let name = reader.GetDocumentName(d.Name) let hash = d.Hash.IsNil ? "" : " " + BitConverter.ToString(reader.GetBytes(d.Hash)) let hashAlgGuid = reader.GetGuid(d.HashAlgorithm) let hashAlg = (hashAlgGuid == sha1) ? " (SHA1)" : (hashAlgGuid == default(Guid)) ? "" : " " + hashAlgGuid.ToString() select $"'{name}'{hash}{hashAlg}"; AssertEx.Equal(expected, actual); }
private void VerifyDocuments(DynamicAnalysisDataReader reader, ImmutableArray<DynamicAnalysisDocument> documents, params string[] expected) { var sha1 = new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460"); var actual = from d in documents let name = reader.GetDocumentName(d.Name) let hash = d.Hash.IsNil ? "" : " " + BitConverter.ToString(reader.GetBytes(d.Hash)) let hashAlgGuid = reader.GetGuid(d.HashAlgorithm) let hashAlg = (hashAlgGuid == sha1) ? " (SHA1)" : (hashAlgGuid == default(Guid)) ? "" : " " + hashAlgGuid.ToString() select $"'{name}'{hash}{hashAlg}"; AssertEx.Equal(expected, actual); }