public void StringtoInteger_WithString() { Assert.AreEqual(12, StringtoInteger.StringtoIntegerFunc("+12a123")); }
public void StringtoInteger_Space() { Assert.AreEqual(12, StringtoInteger.StringtoIntegerFunc(" 12")); }
public void StringtoInteger_1234567890() { Assert.AreEqual(1234567890, StringtoInteger.StringtoIntegerFunc("1234567890")); }
public void StringtoInteger_MinInt_Overflow_More() { Assert.AreEqual(int.MinValue, StringtoInteger.StringtoIntegerFunc(" -10326662300y")); }
public void StringtoInteger_Plus() { Assert.AreEqual(12, StringtoInteger.StringtoIntegerFunc("+12")); }
public void StringtoInteger_MinInt_Less() { Assert.AreEqual(-2147483647, StringtoInteger.StringtoIntegerFunc("-2147483647")); }
public void StringtoInteger_MinInt_Overflow() { Assert.AreEqual(int.MinValue, StringtoInteger.StringtoIntegerFunc("-2147483649")); }
public void StringtoInteger_MaxInt_Overflow_More() { Assert.AreEqual(int.MaxValue, StringtoInteger.StringtoIntegerFunc(" 10522545459")); }
public void StringtoInteger_MaxInt_Overflow() { Assert.AreEqual(int.MaxValue, StringtoInteger.StringtoIntegerFunc("2147483648")); }
public void StringtoInteger_MaxInt() { Assert.AreEqual(2147483647, StringtoInteger.StringtoIntegerFunc("2147483647")); }
public void StringtoInteger_Negative_123() { Assert.AreEqual(-123, StringtoInteger.StringtoIntegerFunc("-123")); }
public void StringtoInteger_0() { Assert.AreEqual(0, StringtoInteger.StringtoIntegerFunc("0")); }