public void AlgorithmN_1() { ICollection <Forest> result = ForestGenerator.AlgorithmN(1); Assert.IsTrue(result.Count == 1); Assert.IsTrue(result.Contains(new Parentheses("()"))); }
public void AlgorithmN_4() { ICollection <Forest> result = ForestGenerator.AlgorithmN(4); Assert.IsTrue(result.Count == all4.Count()); Assert.IsTrue(all4.All <Forest> (e => result.Contains(e))); }
public void AlgorithmN_0() { Assert.IsTrue(ForestGenerator.AlgorithmN(0).Count == 0); }