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

            actual.ShouldBe(expected);
        }