public virtual void TestSetAndGetMultipleTagsInSingleDirectory() { _directory.SetString(ExifSubIFDDirectory.TagAperture, "TAG_APERTURE"); _directory.SetString(ExifSubIFDDirectory.TagBatteryLevel, "TAG_BATTERY_LEVEL"); Sharpen.Tests.AreEqual("TAG_APERTURE", _directory.GetString(ExifSubIFDDirectory.TagAperture)); Sharpen.Tests.AreEqual("TAG_BATTERY_LEVEL", _directory.GetString(ExifSubIFDDirectory.TagBatteryLevel)); }
/// <exception cref="System.IO.IOException"/> private void Set4ByteString([NotNull] Com.Drew.Metadata.Directory directory, int tagType, [NotNull] RandomAccessReader reader) { int i = reader.GetInt32(tagType); if (i != 0) { directory.SetString(tagType, GetStringFromInt32(i)); } }