Esempio n. 1
0
 private void checkCategory(string categoryName, GeoCategory geoCategory)
 {
     Assert.IsNotNull(geoCategory, "Server returned a null category");
     Assert.AreEqual(categoryName, geoCategory.Name, "Server returned a category with a wrong name");
     Assert.IsNotNull(geoCategory.Id, "Server returned a category with a wrong id");
     Assert.IsTrue(geoCategory.Size == 0, "Server returned a category with a wrong size");
 }
Esempio n. 2
0
        public void TestAddProperCategory()
        {
            string      categoryName = GetRandomCategory();
            GeoCategory geoCategory  = Backendless.Geo.AddCategory(categoryName);

            checkCategory(categoryName, geoCategory);
        }