/** * Tests the pattern empty matching detection. */ public void TestMatchingEmpty() { pattern = new ProductionPattern(P1, "P1"); alt = new ProductionPatternAlternative(); alt.AddProduction(P2, 0, -1); alt.AddToken(T1, 0, 1); alt.AddProduction(P1, 0, 1); AddAlternative(pattern, alt); AssertTrue(pattern.IsMatchingEmpty()); }