public void Decrement() { int count; var counter = new NativeCounter(Allocator.Temp); Assert.AreEqual(0, counter.Count); count = counter.Decrement(); Assert.AreEqual(-1, count); Assert.AreEqual(-1, counter.Count); count = counter.Decrement(); count = counter.Decrement(); Assert.AreEqual(-3, count); Assert.AreEqual(-3, counter.Count); counter.Dispose(); }