Write2BE() public method

Write the low two bytes of a value to the stream in big endian order.
public Write2BE ( long n ) : void
n long The value to use.
return void
        public void Write_2BE()
        {
            byte[] want = { 0xAB, 0xCD };
            byte[] got;
            using (var os = new OtpOutputStream())
            {
                os.Write2BE(0xFFFFABCD);
                got = os.ToArray();
            }

            CollectionAssert.AreEqual(want, got);
        }