Ejemplo n.º 1
0
        public void CopyFile()
        {
            const string data = "test string";

            var handle = new WriteFileHandle(data);

            handle.OpenWrite(TestFilePath);

            Loop.Current.Run();

            var handle2 = new Filesystem();

            handle2.Copy(TestFilePath, TestFilePath + "copy", (args) =>
            {
                Assert.IsTrue(args.Successful);
            });

            Loop.Current.Run();
        }