Ejemplo n.º 1
0
 public async Task ReadUInt16_Async()
 {
     using (var f = new GenericFile())
     {
         f.CreateFile(new byte[] { 42, 00, 255, 255 });
         Assert.AreEqual(42, await f.ReadUInt16Async(0));
         Assert.AreEqual(UInt16.MaxValue, await f.ReadUInt16Async(2));
     }
 }