public void Test_FromIXPathNavigable() { using (MagickImage image = new MagickImage(Files.InvitationTif)) { XmpProfile profile = image.GetXmpProfile(); Assert.IsNotNull(profile); IXPathNavigable doc = profile.ToIXPathNavigable(); ExceptionAssert.Throws <ArgumentNullException>(delegate() { XmpProfile.FromIXPathNavigable(null); }); XmpProfile newProfile = XmpProfile.FromIXPathNavigable(doc); image.AddProfile(newProfile); doc = profile.ToIXPathNavigable(); TestIXPathNavigable(doc); profile = image.GetXmpProfile(); Assert.IsNotNull(profile); doc = profile.ToIXPathNavigable(); TestIXPathNavigable(doc); Assert.AreEqual(profile, newProfile); } }
public void Test_ToIXPathNavigable() { using (MagickImage image = new MagickImage(Files.InvitationTif)) { XmpProfile profile = image.GetXmpProfile(); Assert.IsNotNull(profile); IXPathNavigable doc = profile.ToIXPathNavigable(); TestIXPathNavigable(doc); } }