public void TestGetInteropIndexDescription() { var directory = new ExifInteropDirectory(); directory.Set(ExifDirectoryBase.TagInteropIndex, "R98"); var descriptor = new ExifInteropDescriptor(directory); Assert.Equal("Recommended Exif Interoperability Rules (ExifR98)", descriptor.GetDescription(ExifDirectoryBase.TagInteropIndex)); Assert.Equal("Recommended Exif Interoperability Rules (ExifR98)", descriptor.GetInteropIndexDescription()); }
public void TestGetInteropVersionDescription() { var directory = new ExifInteropDirectory(); directory.Set(ExifDirectoryBase.TagInteropVersion, new[] { 0, 1, 0, 0 }); var descriptor = new ExifInteropDescriptor(directory); Assert.Equal("1.00", descriptor.GetDescription(ExifDirectoryBase.TagInteropVersion)); Assert.Equal("1.00", descriptor.GetInteropVersionDescription()); }