public void TestSaveAndFetchSync() { Task.Run(async() => { var message = "Hello, world"; var item = new NCMBObject("DataStoreTest"); item.Set("message", message); await item.Save(); Assert.NotNull(item.ObjectId()); var objectId = item.ObjectId(); var newItem = new NCMBObject("DataStoreTest"); newItem.Set("objectId", objectId); await newItem.Fetch(); Assert.AreEqual(item.ObjectId(), newItem.ObjectId()); Assert.AreEqual(newItem.Get("message").ToString(), message); await item.Delete(); }).GetAwaiter().GetResult(); }