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")); }
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")); }
public void ExistsReturnFalseNoLeafFolder() { MtpDirectory mtpDirectory = new MtpDirectory(); Assert.False(mtpDirectory.Exists(@"Xperia XA\SD Card\Music1")); }
public void ExistsReturnFalseNoDevice() { MtpDirectory mtpDirectory = new MtpDirectory(); Assert.False(mtpDirectory.Exists(@"Xperia XA1\SD Card\Music")); }
public void ExistsReturnTrue() { MtpDirectory mtpDirectory = new MtpDirectory(); Assert.True(mtpDirectory.Exists(@"Xperia XA\SD Card\Music")); }
public void ExistsWithNoPath() { MtpDirectory mtpDirectory = new MtpDirectory(); mtpDirectory.Exists(""); }