public void GetBytes()
		{
			byte[] bytes = new byte[]{ 1, 2 };
		    short newValue = System.BitConverter.ToInt16(bytes, 0);

			PixelBandShort pixelBand = new PixelBandShort();
			pixelBand.Value = newValue;
			Assert.AreEqual(newValue, pixelBand.Value);

			byte[] result = pixelBand.GetBytes();
			Assert.AreEqual(bytes.Length, result.Length);
			for (int i = 0; i < bytes.Length; ++i)
				Assert.AreEqual(bytes[i], result[i]);
		}
        public void SetThenGet()
        {
            byte[] bytes         = new byte[] { 255, 1 };
            short  expectedValue = System.BitConverter.ToInt16(bytes, 0);

            PixelBandShort pixelBand = new PixelBandShort();

            pixelBand.SetBytes(bytes, 0);
            Assert.AreEqual(expectedValue, pixelBand.Value);

            byte[] getResult = pixelBand.GetBytes();
            Assert.AreEqual(bytes.Length, getResult.Length);
            for (int i = 0; i < bytes.Length; ++i)
            {
                Assert.AreEqual(bytes[i], getResult[i]);
            }
        }
        public void GetBytes()
        {
            byte[] bytes    = new byte[] { 1, 2 };
            short  newValue = System.BitConverter.ToInt16(bytes, 0);

            PixelBandShort pixelBand = new PixelBandShort();

            pixelBand.Value = newValue;
            Assert.AreEqual(newValue, pixelBand.Value);

            byte[] result = pixelBand.GetBytes();
            Assert.AreEqual(bytes.Length, result.Length);
            for (int i = 0; i < bytes.Length; ++i)
            {
                Assert.AreEqual(bytes[i], result[i]);
            }
        }
		public void SetThenGet()
		{
			byte[] bytes = new byte[]{ 255, 1 };
		    short expectedValue = System.BitConverter.ToInt16(bytes, 0);

			PixelBandShort pixelBand = new PixelBandShort();
			pixelBand.SetBytes(bytes, 0);
			Assert.AreEqual(expectedValue, pixelBand.Value);

			byte[] getResult = pixelBand.GetBytes();
			Assert.AreEqual(bytes.Length, getResult.Length);
			for (int i = 0; i < bytes.Length; ++i)
				Assert.AreEqual(bytes[i], getResult[i]);
		}