public void PhotosLicensesSetLicenseTest() { string photoId = "7176125763"; var photoInfo = AuthInstance.PhotosGetInfo(photoId); // Rainbow Rose var origLicense = photoInfo.License; var newLicense = origLicense == LicenseType.AttributionCC ? LicenseType.AttributionNoDerivativesCC : LicenseType.AttributionCC; AuthInstance.PhotosLicensesSetLicense(photoId, newLicense); var newPhotoInfo = IgnoreInstance.PhotosGetInfo(photoId); Assert.AreEqual(newLicense, newPhotoInfo.License, "License has not changed to correct value."); // Reset license AuthInstance.PhotosLicensesSetLicense(photoId, origLicense); }