public void ShouldReturnZeroForOverflow() { int x = 1534236469; int result = new ReverseSignedInteger().ReverseNumberUsingMath(x); Assert.Equal(0, result); }
public void ShouldReturnReversedInteger() { int x = 12345; int result = new ReverseSignedInteger().ReverseSignedInt(x); Assert.Equal(54321, result); }
public void ShouldReturnReverseSignedIntUsingMath() { int x = -12345; int result = new ReverseSignedInteger().ReverseNumberUsingMath(x); Assert.Equal(-54321, result); }