Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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());
        }