Set() public method

Sets the value of the AtomicBoolean to the provided value.
public Set ( bool newValue ) : void
newValue bool The new value to assign.
return void
Exemplo n.º 1
0
        public void Set_Should_Set_New_Value()
        {
            var b = new AtomicBoolean(false);

            b.Set(true);

            b.Value.Should().BeTrue();
        }