public static int ToInt32(AtomicInteger atomicInteger) { if (atomicInteger == null) { throw new InvalidCastException(); } return atomicInteger.value; }
public void ToInt32_Should_Return_Value_As_Int32() { var i = new AtomicInteger(123); i.ToInt32().Should().Be(123); }