ReadInt16Async() public method

public ReadInt16Async ( ) : Task
return Task
        public async Task Int16TestAsync()
        {
            MemoryStream memStream = new MemoryStream();
            BigEndianStream bigEndianStream = new BigEndianStream(memStream);

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

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

            memStream.Seek(0, SeekOrigin.Begin);

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