ReadDoubleAsync() public method

public ReadDoubleAsync ( ) : Task
return Task
        public async Task DoubleTest()
        {
            MemoryStream memStream = new MemoryStream();
            BigEndianStream bigEndianStream = new BigEndianStream(memStream);

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

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

            memStream.Seek(0, SeekOrigin.Begin);

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