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