示例#1
0
        public void ShouldReturnChangedValueAfterAddAndGet()
        {
            var sequence = new Sequence(0);

            Assert.AreEqual(10, sequence.AddAndGet(10));
            Assert.AreEqual(10, sequence.Value);
        }
示例#2
0
 public long Add()
 {
     return(_sequence.AddAndGet(1));
 }