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); }
public void AddCount() { lrc.Add(lr); Assert.Equal(1, lrc.Count); }