public void TestParseConstant(string value) { Arrange(value); var context = parser.constant(); Assert.AreEqual((parser.InputStream as CommonTokenStream)?.Get(0).Type, Oc5Lexer.LIST_INDEX); Assert.AreEqual((parser.InputStream as CommonTokenStream)?.Get(1).Type, Oc5Lexer.IDENTIFIER); Assert.IsNotNull(context.index()); AssertParsingOk(); }