Exemple #1
0
 public async Task ReadInt16BigEndian_Async()
 {
     using (var f = new GenericFile())
     {
         f.CreateFile(new byte[] { 00, 42, 255, 255 });
         Assert.AreEqual(42, await f.ReadInt16BigEndianAsync(0));
         Assert.AreEqual(-1, await f.ReadInt16BigEndianAsync(2));
     }
 }