Esempio n. 1
0
        public void AlgorithmN_1()
        {
            ICollection <Forest> result = ForestGenerator.AlgorithmN(1);

            Assert.IsTrue(result.Count == 1);
            Assert.IsTrue(result.Contains(new Parentheses("()")));
        }
Esempio n. 2
0
        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)));
        }
Esempio n. 3
0
 public void AlgorithmN_0()
 {
     Assert.IsTrue(ForestGenerator.AlgorithmN(0).Count == 0);
 }