public async Task StringTestAsync() { MemoryStream memStream = new MemoryStream(); BigEndianStream bigEndianStream = new BigEndianStream(memStream); string testString = "Hello, World!"; await bigEndianStream.WriteAsync(testString); memStream.Seek(0, SeekOrigin.Begin); var result = await bigEndianStream.ReadString16Async(); Assert.AreEqual(testString, result); Assert.AreEqual(memStream.Position, memStream.Length); memStream.SetLength(0); bigEndianStream.Write8(testString); memStream.Seek(0, SeekOrigin.Begin); result = await bigEndianStream.ReadString8Async(); Assert.AreEqual(testString, result); Assert.AreEqual(memStream.Position, memStream.Length); }