public void AddToSetFailTest() { FlickrConnect target = new FlickrConnect(null, null); setOAuthForTst(target); string photoset_id = "72157631845760499"; // TestAlbum string filename = "c:\\nonexistentfile"; string actual; actual = target.AddToSet(photoset_id, filename); Assert.IsTrue( actual.Length == 0 ); }
public void AddToSetTest() { FlickrConnect target = new FlickrConnect(null, null); setOAuthForTst(target); string photoset_id = "72157631845760499"; // TestAlbum string filename = "c:\\temp\\Koala.jpg"; string actual; actual = target.AddToSet(photoset_id, filename); Assert.IsTrue( actual.Length > 0 ); target.DeletePhoto(actual); }