public void GroupsGetInfoNoGroupIconTest()
        {
            string groupId = "562176@N20";

            GroupFullInfo info = Instance.GroupsGetInfo(groupId);

            Assert.IsNotNull(info, "GroupFullInfo should not be null");
            Assert.AreEqual("0", info.IconServer, "Icon Server should be zero");
            Assert.AreEqual("https://www.flickr.com/images/buddyicon.jpg", info.GroupIconUrl);
        }
        public void GroupsGetInfoBasicTest()
        {
            GroupFullInfo info = Instance.GroupsGetInfo(Data.GroupId);

            Assert.IsNotNull(info, "GroupFullInfo should not be null");
            Assert.AreEqual(Data.GroupId, info.GroupId);
            Assert.AreEqual("The Lake District UK", info.GroupName);

            Assert.AreEqual("5128", info.IconServer);
            Assert.AreEqual("6", info.IconFarm);

            Assert.AreEqual("https://farm6.staticflickr.com/5128/buddyicons/[email protected]", info.GroupIconUrl);

            Assert.AreEqual(2, info.ThrottleInfo.Count);
            Assert.AreEqual(GroupThrottleMode.PerDay, info.ThrottleInfo.Mode);

            Assert.IsTrue(info.Restrictions.PhotosAccepted, "PhotosAccepted should be true.");
            Assert.IsFalse(info.Restrictions.VideosAccepted, "VideosAccepted should be false.");
        }
示例#3
0
        public void GroupsGetInfoBasicTest()
        {
            Flickr f = TestData.GetInstance();

            GroupFullInfo info = f.GroupsGetInfo(TestData.GroupId);

            Assert.IsNotNull(info, "GroupFullInfo should not be null");
            Assert.AreEqual(TestData.GroupId, info.GroupId);
            Assert.AreEqual("FLOWERS", info.GroupName);

            Assert.AreEqual("3716", info.IconServer);
            Assert.AreEqual("4", info.IconFarm);

            Assert.AreEqual("http://farm4.staticflickr.com/3716/buddyicons/[email protected]", info.GroupIconUrl);

            Assert.AreEqual(3, info.ThrottleInfo.Count);
            Assert.AreEqual(GroupThrottleMode.PerDay, info.ThrottleInfo.Mode);

            Assert.IsTrue(info.Restrictions.PhotosAccepted, "PhotosAccepted should be true.");
            Assert.IsFalse(info.Restrictions.VideosAccepted, "VideosAccepted should be false.");
        }