Пример #1
0
        public void TestMoveFile()
        {
            string remoteFilePathFrom = "/uprof/testmovefile1.temp";
            string remoteFilePathTo   = "/uprof/testmovefile2.temp";

            string contents = "My XML text";

            xmlmcService.PutText(remoteFilePathFrom, contents);
            Assert.IsTrue(xmlmcService.DoesFileExists(remoteFilePathFrom));

            xmlmcService.MoveFile(remoteFilePathFrom, remoteFilePathTo);
            Assert.IsTrue(xmlmcService.DoesFileExists(remoteFilePathTo));
            Assert.IsFalse(xmlmcService.DoesFileExists(remoteFilePathFrom));

            xmlmcService.RemoveFile(remoteFilePathTo);
            Assert.IsFalse(xmlmcService.DoesFileExists(remoteFilePathTo));
        }