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