Esempio n. 1
0
        public async Task WriteInt16_Async()
        {
            using (var f = new GenericFile())
            {
                f.CreateFile(new byte[4]);
                await f.WriteInt16Async(0, 42);

                await f.WriteInt16Async(2, -1);

                Assert.IsTrue((new byte[] { 42, 00, 255, 255 }).SequenceEqual(f.Read()));
            }
        }