ToInt32() public méthode

Extracts a Int32 from an AtomicInteger instance.
public ToInt32 ( ) : int
Résultat int
        public void ToInt32_Should_Return_Value_As_Int32()
        {
            var i = new AtomicInteger(123);

            i.ToInt32().Should().Be(123);
        }
        public void Static_ToInt32_Should_Return_Value_As_Int32()
        {
            var i = new AtomicInteger(123);

            AtomicInteger.ToInt32(i).Should().Be(123);
        }
        public void Static_ToInt32_Should_Throw_On_Null()
        {
            Action action = () => AtomicInteger.ToInt32(null);

            action.ShouldThrow <InvalidCastException>();
        }
        public void ToInt32_Should_Return_Value_As_Int32()
        {
            var i = new AtomicInteger(123);

            i.ToInt32().Should().Be(123);
        }