ToBoolean() public method

Extracts a Boolean from an AtomicBoolean instance.
public ToBoolean ( ) : bool
return bool
Esempio n. 1
0
        public void Static_ToBoolean_Should_Return_False()
        {
            var b = new AtomicBoolean(false);

            AtomicBoolean.ToBoolean(b).Should().BeFalse();
        }
Esempio n. 2
0
        public void Static_ToBoolean_Should_Throw_On_Null()
        {
            Action action = () => AtomicBoolean.ToBoolean(null);

            action.ShouldThrow <InvalidCastException>();
        }
Esempio n. 3
0
        public void ToBoolean_Should_Return_False()
        {
            var b = new AtomicBoolean(false);

            b.ToBoolean().Should().BeFalse();
        }
Esempio n. 4
0
        public void Static_ToBoolean_Should_Return_True()
        {
            var b = new AtomicBoolean(true);

            AtomicBoolean.ToBoolean(b).Should().BeTrue();
        }
Esempio n. 5
0
        public void ToBoolean_Should_Return_True()
        {
            var b = new AtomicBoolean(true);

            b.ToBoolean().Should().BeTrue();
        }
Esempio n. 6
0
 public void ToBoolean_Should_Return_True()
 {
     var b = new AtomicBoolean(true);
     b.ToBoolean().Should().BeTrue();
 }
Esempio n. 7
0
 public void ToBoolean_Should_Return_False()
 {
     var b = new AtomicBoolean(false);
     b.ToBoolean().Should().BeFalse();
 }