Esempio n. 1
0
 public void Change_ShouldReturnOldValueOfSelf(int actual, int from, int to, int expected) =>
 Atomically.Change(ref actual, from, to).ShouldBe(expected);
Esempio n. 2
0
        public void Change_ShouldNotReplaceValueWithTo_IfItIsNotEqualToFrom(int actual, int from, int to, int expected)
        {
            Atomically.Change(ref actual, from, to);

            actual.ShouldBe(expected);
        }