public void Change_ShouldReturnOldValueOfSelf(int actual, int from, int to, int expected) => Atomically.Change(ref actual, from, to).ShouldBe(expected);
public void Changed_ShouldBeFalse_IfValueWasNotChanged(int actual, int from, int to) => Atomically.Changed(ref actual, from, to).ShouldBeFalse();
public void Change_ShouldNotReplaceValueWithTo_IfItIsNotEqualToFrom(int actual, int from, int to, int expected) { Atomically.Change(ref actual, from, to); actual.ShouldBe(expected); }