public async Task WriteUInt16_Async() { using (var f = new GenericFile()) { f.CreateFile(new byte[4]); await f.WriteUInt16Async(0, 42); await f.WriteUInt16Async(2, UInt16.MaxValue); Assert.IsTrue((new byte[] { 42, 00, 255, 255 }).SequenceEqual(f.Read())); } }