예제 #1
0
 private void CompareFileMetadataItems(FileMetadata raw, FileMetadata actual)
 {
     Assert.Equal(raw.Count, actual.Count);
     foreach (var pair in raw)
     {
         Assert.True(actual.TryGetValue(pair.Key, out var array));
         Assert.Equal(pair.Value.Length, array.Length);
         for (var i = 0; i < array.Length; i++)
         {
             Assert.Equal(pair.Value[i].Glob.Raw, array[i].Glob.Raw);
             Assert.Equal(pair.Value[i].Key, array[i].Key);
             Assert.Equal(pair.Value[i].Value, array[i].Value);
         }
     }
 }