Esempio n. 1
0
        public void CreateDoubleFolder()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();

            mtpDirectory.CreateDirectory(@"Xperia XA\SD Card\Music\abc2");
            Assert.True(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc2"));
            mtpDirectory.CreateDirectory(@"Xperia XA\SD Card\Music\abc2");
            Assert.True(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc2"));
        }
Esempio n. 2
0
        public void DeleteFolderOk()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();

            mtpDirectory.CreateDirectory(@"Xperia XA\SD Card\Music\abc1\abc2\abc3");
            Assert.True(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc1\abc2\abc3"));
            mtpDirectory.Delete(@"Xperia XA\SD Card\Music\abc1\abc2\abc3", false);
            Assert.False(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc1\abc2\abc3"));
            Assert.True(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc1\abc2"));
        }
Esempio n. 3
0
        public void CreateFolderNoPath()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();

            mtpDirectory.CreateDirectory(null);
        }