public void Set(bool newValue) { int newValueAsInt = Convert.ToInt32(newValue); Interlocked.Exchange(ref this.value, newValueAsInt); }
public void Set_Should_Set_New_Value() { var b = new AtomicBoolean(false); b.Set(true); b.Value.Should().BeTrue(); }