public void ShouldReturnChangedValueAfterAddAndGet() { var sequence = new Sequence(0); Assert.AreEqual(10, sequence.AddAndGet(10)); Assert.AreEqual(10, sequence.Value); }
public long Add() { return(_sequence.AddAndGet(1)); }