public void PhotosPeopleGetListSpecificUserTest() { const string photoId = "104267998"; // http://www.flickr.com/photos/thunderchild5/104267998/ const string userId = "41888973@N00"; //sam judsons nsid PhotoPersonCollection ppl = Instance.PhotosPeopleGetList(photoId); PhotoPerson pp = ppl[0]; Assert.AreEqual(userId, pp.UserId); Assert.IsTrue(pp.BuddyIconUrl.Contains(".staticflickr.com/"), "Buddy icon doesn't contain correct details."); }
public void PhotostreamUrlContainsUserIdIfPathAliasIsEmpty() { var photoPerson = new PhotoPerson() { PathAlias = string.Empty, UserId = "UserId", }; string userPart = photoPerson.PhotostreamUrl.Split('/')[4]; Assert.AreNotEqual(userPart, string.Empty, "User part of the URL cannot be empty"); }