public void TestErrorMessage() { Assert.Throws <FormatException>(() => ReversePolishParser.Parse("1 2 a")); }
public void TestRepetitions(string expression, int result) { Assert.Equal(result, ReversePolishParser.Parse(expression)); }