public void GetTopLevelOk() { MtpDirectory mtpDirectory = new MtpDirectory(); var result = mtpDirectory.GetTopLevel(@"Xperia XA\SD Card\Music"); Assert.AreEqual(5, result.Count()); Assert.True(result.Any(f => f == @"Xperia XA\SD Card\Music\abc")); }
public void GetTopLevelNoDevice() { MtpDirectory mtpDirectory = new MtpDirectory(); mtpDirectory.GetTopLevel(@"Xperia XA1\SD Card\Music"); }
public void GetTopLevelNoFolder() { MtpDirectory mtpDirectory = new MtpDirectory(); mtpDirectory.GetTopLevel(@"Xperia XA\SD Card\Music111"); }
public void GetTopLevelNoPath() { MtpDirectory mtpDirectory = new MtpDirectory(); mtpDirectory.GetTopLevel(string.Empty); }