public virtual void TestGetInteropIndexDescription() { ExifInteropDirectory directory = new ExifInteropDirectory(); directory.SetString(ExifInteropDirectory.TagInteropIndex, "R98"); ExifInteropDescriptor descriptor = new ExifInteropDescriptor(directory); Sharpen.Tests.AreEqual("Recommended Exif Interoperability Rules (ExifR98)", descriptor.GetDescription(ExifInteropDirectory.TagInteropIndex)); Sharpen.Tests.AreEqual("Recommended Exif Interoperability Rules (ExifR98)", descriptor.GetInteropIndexDescription()); }
public virtual void TestGetInteropVersionDescription() { ExifInteropDirectory directory = new ExifInteropDirectory(); directory.SetIntArray(ExifInteropDirectory.TagInteropVersion, new int[] { 0, 1, 0, 0 }); ExifInteropDescriptor descriptor = new ExifInteropDescriptor(directory); Sharpen.Tests.AreEqual("1.00", descriptor.GetDescription(ExifInteropDirectory.TagInteropVersion)); Sharpen.Tests.AreEqual("1.00", descriptor.GetInteropVersionDescription()); }
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()); }
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()); }