public void FavoritesGetListBasicTest() { var photos = AuthInstance.FavoritesGetList(); Assert.IsNotNull(photos, "PhotoCollection should not be null instance."); Assert.AreNotEqual(0, photos.Count, "PhotoCollection.Count should be greater than zero."); }
public void FavoritesGetListFullParamTest() { var photos = AuthInstance.FavoritesGetList(TestData.TestUserId, DateTime.Now.AddYears(-1), DateTime.Now, PhotoSearchExtras.All, 1, 10); Assert.IsNotNull(photos, "PhotoCollection should not be null."); Assert.IsTrue(photos.Count > 0, "Count should be greater than zero."); }
public void FavoritesGetListPartialParamTest() { PhotoCollection photos = AuthInstance.FavoritesGetList(TestData.TestUserId, 2, 20); Assert.IsNotNull(photos, "PhotoCollection should not be null instance."); Assert.AreNotEqual(0, photos.Count, "PhotoCollection.Count should be greater than zero."); Assert.AreEqual(2, photos.Page); Assert.AreEqual(20, photos.PerPage); Assert.AreEqual(20, photos.Count); }