示例#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);
        }