Пример #1
0
        public async Task WriteByteArrayToFileAsyncTest()
        {
            await IOProxy.WriteBytesToFileAsync(testArray, testFileName).ConfigureAwait(false);

            MemoryStream ms = await IOProxy.GetMemoryStreamFromFileAsync(testFileName).ConfigureAwait(false);

            Assert.IsTrue(CompareStreams(testStream, ms));
        }
Пример #2
0
        public async Task ReadWriteMemoryStreamToFileAsyncTest()
        {
            await IOProxy.WriteMemoryStreamToFileAsync(testStream, testFileName);

            MemoryStream ms = await IOProxy.GetMemoryStreamFromFileAsync(testFileName);

            Assert.IsTrue(CompareStreams(testStream, ms));
        }