public void ImplicitMultiplicationRewriter_Can_Rewrite_Implicit_Multiplication_When_Constant_Is_Followed_By_Variable()
{
// 5x
List<Token> tokens = new List<Token>();
tokens.Add(new Token(TokenType.Numeric, 2D));
tokens.Add(new Token(TokenType.Variable, "x"));
ImplicitMultiplicationRewriter processor = new ImplicitMultiplicationRewriter();
TokenStream stream = new TokenStream(tokens, TokenNotation.Infix);
Token[] result = processor.Rewrite(stream).ToArray();
Assert.AreEqual(3, result.Length);
Assert.AreEqual(TokenType.Numeric, result[0].Type);
Assert.AreEqual(TokenType.Multiplication, result[1].Type);
Assert.AreEqual(TokenType.Variable, result[2].Type);
}