public void StringToIntegerTest_Case6() { // Arrange StringToIntegerProblem obj = new StringToIntegerProblem(); string num = "+1"; int expected = 1; // Act int actual = obj.MyAtoi(num); // Assert Assert.Equal(expected, actual); }
public void StringToIntegerTest_Case5() { // Arrange StringToIntegerProblem obj = new StringToIntegerProblem(); string num = "-91283472332"; int expected = -2147483648; // Act int actual = obj.MyAtoi(num); // Assert Assert.Equal(expected, actual); }