public void GetFilesFilteredAllDirectoriesNoMatch()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();
            var          result       = mtpDirectory.GetFiles(@"Xperia XA\SD Card\Music\abc\abc2", SearchOption.AllDirectories, new[] { ".t4", ".t5" });

            Assert.AreEqual(0, result.Count());
        }
        public void GetFilesAllAllDirectoriesOk()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();
            var          result       = mtpDirectory.GetFiles(@"Xperia XA\SD Card\Music\abc", SearchOption.AllDirectories);

            Assert.AreEqual(9, result.Count());
            Assert.True(result.Any(f => f == @"Xperia XA\SD Card\Music\abc\f1.txt"));
        }
        public void GetFilesFilteredTopDirectoryOnlyOk()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();
            var          result       = mtpDirectory.GetFiles(@"Xperia XA\SD Card\Music\abc\abc1", SearchOption.TopDirectoryOnly, new [] { ".t1", ".t2" });

            Assert.AreEqual(1, result.Count());
            Assert.False(result.Any(f => f == @"Xperia XA\SD Card\Music\abc\abc1\f2.txt"));
            Assert.True(result.Any(f => f == @"Xperia XA\SD Card\Music\abc\abc1\f2.t2"));
        }
        public void GetFilesFilePassed()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();

            mtpDirectory.GetFiles(@"Xperia XA\SD Card\Music\abc\f1.txt", SearchOption.TopDirectoryOnly);
        }
        public void GetFilesNoFolder()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();

            mtpDirectory.GetFiles(@"Xperia XA\SD Card\Music111", SearchOption.TopDirectoryOnly);
        }
        public void GetFilesNoDevice()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();

            mtpDirectory.GetFiles(@"Xperia XA1\SD Card\Music", SearchOption.TopDirectoryOnly);
        }
        public void GetFilesNoPath()
        {
            MtpDirectory mtpDirectory = new MtpDirectory();

            mtpDirectory.GetFiles(string.Empty, SearchOption.TopDirectoryOnly);
        }