Exemplo n.º 1
0
        public async Task WriteUInt32_Async()
        {
            using (var f = new GenericFile())
            {
                f.CreateFile(new byte[8]);
                await f.WriteUInt32Async(0, 42);

                await f.WriteUInt32Async(4, UInt32.MaxValue);

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