public void TestRemoveEpsilonProductions() { CFG grammar2Transformed = grammar2.RemoveEpsilonProductions(); CFG expectedresult = CFGBuilder.Start("a") .Derive("a").ToEpsilon() .Derive("a").To("c", "d") .Derive("a").To("d") .Derive("c").To("d") .Build(); Assert.AreEqual(expectedresult, grammar2Transformed); }