public void CanParseSingleDigitIntegers() { for (int i = 0; i < 9; i++) { var tokens = new PlusMinusTokenizer().Scan(i.ToString(CultureInfo.InvariantCulture)).ToList(); Assert.AreEqual(i, (tokens.First() as NumberConstantToken).Value); } }
public int CanParseNumbersNumbersWithMoreDigits(string expression) { var tokens = new PlusMinusTokenizer().Scan(expression).ToList(); return((tokens.First() as NumberConstantToken).Value); }
public Type CanParseOperatorTokens(string expression) { var tokens = new PlusMinusTokenizer().Scan(expression); return(tokens.First().GetType()); }