ReadByteAsync() public method

public ReadByteAsync ( ) : Task
return Task
        public async Task ByteTestAsync()
        {
            MemoryStream memStream = new MemoryStream();
            BigEndianStream bigEndianStream = new BigEndianStream(memStream);

            var testByte1 = byte.MinValue;
            var testByte2 = byte.MaxValue;

            await bigEndianStream.WriteAsync(testByte1);
            await bigEndianStream.WriteAsync(testByte2);

            memStream.Seek(0, SeekOrigin.Begin);

            Assert.AreEqual(await bigEndianStream.ReadByteAsync(), testByte1);
            Assert.AreEqual(await bigEndianStream.ReadByteAsync(), testByte2);
            Assert.AreEqual(memStream.Position, memStream.Length);
        }