public virtual void TestGetInt64()
        {
            sbyte[] buffer          = new sbyte[] { unchecked ((sbyte)unchecked ((int)(0xFF))), unchecked ((int)(0x00)), unchecked ((int)(0x01)), unchecked ((int)(0x02)), unchecked ((int)(0x03)), unchecked ((int)(0x04)), unchecked (
                                                        (int)(0x05)), unchecked ((int)(0x06)), unchecked ((int)(0x07)) };
            SequentialReader reader = CreateReader(buffer);

            Sharpen.Tests.AreEqual(unchecked ((long)(0xFF00010203040506L)), reader.GetInt64());
            reader = CreateReader(buffer);
            reader.SetMotorolaByteOrder(false);
            Sharpen.Tests.AreEqual(unchecked ((long)(0x06050403020100FFL)), reader.GetInt64());
        }
 public virtual void TestGetInt64_OutOfBounds()
 {
     try
     {
         SequentialReader reader = CreateReader(new sbyte[7]);
         reader.GetInt64();
         NUnit.Framework.Assert.Fail("Exception expected");
     }
     catch (IOException ex)
     {
         Sharpen.Tests.AreEqual("End of data reached.", ex.Message);
     }
 }