示例#1
0
        public void AddSetTest()
        {
            FlickrConnect target = new FlickrConnect(null, null);
            setOAuthForTst(target);

            string parent_collection_id = null;
            string set_name = "DeleteMeEmptySet";
            string representative_filename = "c:\\temp\\koala.jpg";
            string actual;
            actual = target.AddSet(parent_collection_id, set_name, representative_filename);
            Assert.IsTrue(actual.Length > 0);

            target.GetFlickrHandle_forTesting().PhotosetsDelete(actual);
        }
示例#2
0
        public void UploadPhotoTest()
        {
            FlickrConnect target = new FlickrConnect(null, null);
            setOAuthForTst(target);

            string filename = "c:\\temp\\koala.jpg";
            string actual;
            actual = target.UploadPhoto(filename);
            Assert.IsNotNull(actual);
            target.GetFlickrHandle_forTesting().PhotosDelete(actual);
        }