Пример #1
0
        public void AlgorithmN_1()
        {
            ICollection <Forest> result = ForestGenerator.AlgorithmN(1);

            Assert.IsTrue(result.Count == 1);
            Assert.IsTrue(result.Contains(new Parentheses("()")));
        }
Пример #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)));
        }
Пример #3
0
 public void AlgorithmN_0()
 {
     Assert.IsTrue(ForestGenerator.AlgorithmN(0).Count == 0);
 }