Example #1
0
 private void AddLinkedResources(LinkedResourceCollection linkedResourceCollection, Dictionary <string, byte[]> linkedResources)
 {
     foreach (var linkedResource in linkedResources ?? Enumerable.Empty <KeyValuePair <string, byte[]> >())
     {
         var lres = new LinkedResource(new MemoryStream(linkedResource.Value), MimeTypeResolver.Resolve(linkedResource.Key))
         {
             ContentId = linkedResource.Key
         };
         linkedResourceCollection.Add(lres);
     }
 }
 public void AddCount()
 {
     lrc.Add(lr);
     Assert.IsTrue(lrc.Count == 1);
 }
Example #3
0
 public void AddCount()
 {
     lrc.Add(lr);
     Assert.Equal(1, lrc.Count);
 }