Example #1
0
        public void WriteAndReadFile()
        {
            const string data = "test string";

            var handle = new WriteFileHandle(data);

            handle.OpenWrite(TestFilePath);

            Loop.Current.Run();

            var handle2 = new ReadFileHandle();

            handle2.OpenRead(TestFilePath);

            Loop.Current.Run();

            Assert.AreEqual(data, handle2.Content);
            this.CheckCurrentLoop();
        }
Example #2
0
        public void WriteAndReadFile()
        {
            const string data = "test string";

            var handle = new WriteFileHandle(data);
            handle.OpenWrite(TestFilePath);

            Loop.Current.Run();

            var handle2 = new ReadFileHandle();
            handle2.OpenRead(TestFilePath);

            Loop.Current.Run();

            Assert.AreEqual(data, handle2.Content);
            this.CheckCurrentLoop();
        }