public IptcValue GetValue(IptcTag tag) { foreach (IptcValue iptcValue in Values) { if (iptcValue.Tag == tag) return iptcValue; } return null; }
private static void TestValue(IptcProfile profile, IptcTag tag, string expectedValue) { IptcValue value = profile.GetValue(tag); Assert.IsNotNull(value); Assert.AreEqual(expectedValue, value.Value); }