public void TestUploadMappingNextCursor() { UploadMappingResults result; string templateSuffix = "_test"; result = m_cloudinary.CreateUploadMapping(FOLDERS[1], TEMPLATE + templateSuffix); StringAssert.AreEqualIgnoringCase("created", result.Message); result = m_cloudinary.CreateUploadMapping(FOLDERS[2], TEMPLATE + templateSuffix); StringAssert.AreEqualIgnoringCase("created", result.Message); var uploadMappingParams = new UploadMappingParams() { MaxResults = 1, Template = templateSuffix }; //get the first upload mapping of two created with given template UploadMappingResults results1 = m_cloudinary.UploadMappings(uploadMappingParams); Assert.IsNotNull(results1.NextCursor); Assert.IsNull(results1.Error); Assert.AreEqual(1, results1.Mappings.Count); //get the second upload mapping of two created with given template uploadMappingParams.NextCursor = results1.NextCursor; UploadMappingResults results2 = m_cloudinary.UploadMappings(uploadMappingParams); Assert.IsNull(results2.Error); Assert.AreEqual(1, results2.Mappings.Count); }