Exemple #1
0
        public void RandomTree_NumberOfChildrenRespected_LessOrEqualToTheParameter()
        {
            mtg t = new mtg();

            int maximumNbChildren = 9;

            int lastVertex = algorithm.RandomTree(t, t.root, 5000, maximumNbChildren);

            foreach (int keyId in t.children.Keys)
            {
                Assert.IsTrue(t.NbChildren(keyId) <= maximumNbChildren);
            }
        }