Ejemplo n.º 1
0
        public async Task AtomicCountersWithoutPreInitializationTest()
        {
            var obj = new APObject("object");
            await obj.SaveAsync();

            await obj.IncrementAsync("intfield", 10);

            await obj.DecrementAsync("intfield", 5);

            Assert.AreEqual(5, obj.Get <int>("intfield"));
        }
Ejemplo n.º 2
0
 public async Task AtomicCountersWithoutPreInitializationTest()
 {
     var obj = new APObject("object");
     await obj.SaveAsync();
     await obj.IncrementAsync("intfield", 10);
     await obj.DecrementAsync("intfield", 5);
     Assert.AreEqual(5, obj.Get<int>("intfield"));
 }