public virtual void SetUp()
 {
     System.Threading.Thread.CurrentThread.CurrentCulture = Sharpen.Extensions.CreateLocale("en", "GB");
     _nikonDirectory = ExifReaderTest.ProcessBytes<NikonType2MakernoteDirectory>("Tests/Data/nikonMakernoteType2a.jpg.app1");
     NUnit.Framework.Assert.IsNotNull(_nikonDirectory);
     _descriptor = new NikonType2MakernoteDescriptor(_nikonDirectory);
 }
		public virtual void SetUp()
		{
			Com.Drew.Metadata.Metadata metadata = ExifReaderTest.ProcessBytes("Tests/Data/nikonMakernoteType2b.jpg.app1");
			_nikonDirectory = metadata.GetDirectory<NikonType2MakernoteDirectory>();
			_exifIFD0Directory = metadata.GetDirectory<ExifIFD0Directory>();
			_exifSubIFDDirectory = metadata.GetDirectory<ExifSubIFDDirectory>();
			_thumbDirectory = metadata.GetDirectory<ExifThumbnailDirectory>();
			NUnit.Framework.Assert.IsNotNull(_nikonDirectory);
			NUnit.Framework.Assert.IsNotNull(_exifSubIFDDirectory);
		}
 public virtual void TestGetAutoFlashCompensationDescription()
 {
     NikonType2MakernoteDirectory directory = new NikonType2MakernoteDirectory();
     NikonType2MakernoteDescriptor descriptor = new NikonType2MakernoteDescriptor(directory);
     // no entry exists
     NUnit.Framework.Assert.IsNull(descriptor.GetAutoFlashCompensationDescription());
     directory.SetByteArray(NikonType2MakernoteDirectory.TagAutoFlashCompensation, new sbyte[] { unchecked((int)(0x06)), unchecked((int)(0x01)), unchecked((int)(0x06)) });
     Sharpen.Tests.AreEqual("1 EV", descriptor.GetAutoFlashCompensationDescription());
     directory.SetByteArray(NikonType2MakernoteDirectory.TagAutoFlashCompensation, new sbyte[] { unchecked((int)(0x04)), unchecked((int)(0x01)), unchecked((int)(0x06)) });
     Sharpen.Tests.AreEqual("0.67 EV", descriptor.GetAutoFlashCompensationDescription());
     directory.SetByteArray(NikonType2MakernoteDirectory.TagAutoFlashCompensation, new sbyte[] { unchecked((int)(0x02)), unchecked((int)(0x01)), unchecked((int)(0x06)) });
     Sharpen.Tests.AreEqual("0.33 EV", descriptor.GetAutoFlashCompensationDescription());
     directory.SetByteArray(NikonType2MakernoteDirectory.TagAutoFlashCompensation, new sbyte[] { unchecked((sbyte)0xFE), unchecked((int)(0x01)), unchecked((int)(0x06)) });
     Sharpen.Tests.AreEqual("-0.33 EV", descriptor.GetAutoFlashCompensationDescription());
 }
		public virtual void SetUp()
		{
			_nikonDirectory = ExifReaderTest.ProcessBytes<NikonType2MakernoteDirectory>("Tests/Data/nikonMakernoteType2a.jpg.app1");
			NUnit.Framework.Assert.IsNotNull(_nikonDirectory);
			_descriptor = new NikonType2MakernoteDescriptor(_nikonDirectory);
		}