예제 #1
0
 public void Change_ShouldReturnOldValueOfSelf(int actual, int from, int to, int expected) =>
 Atomically.Change(ref actual, from, to).ShouldBe(expected);
예제 #2
0
 public void Changed_ShouldBeFalse_IfValueWasNotChanged(int actual, int from, int to) =>
 Atomically.Changed(ref actual, from, to).ShouldBeFalse();
예제 #3
0
        public void Change_ShouldNotReplaceValueWithTo_IfItIsNotEqualToFrom(int actual, int from, int to, int expected)
        {
            Atomically.Change(ref actual, from, to);

            actual.ShouldBe(expected);
        }