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"); }
public void TestAddProperCategory() { string categoryName = GetRandomCategory(); GeoCategory geoCategory = Backendless.Geo.AddCategory(categoryName); checkCategory(categoryName, geoCategory); }