Пример #1
0
        public void TestVisiting()
        {
            VisitedAtoms visited = new VisitedAtoms();
            IAtom        atom    = new Atom("C");

            Assert.IsFalse(visited.IsVisited(atom));
            visited.Visited(atom);
            Assert.IsTrue(visited.IsVisited(atom));
        }
Пример #2
0
        public void TestAddedVisitedAtoms()
        {
            VisitedAtoms visited = new VisitedAtoms();
            IAtom        atom    = new Atom("C");

            VisitedAtoms visitedToAdd = new VisitedAtoms();

            visited.Visited(atom);

            Assert.IsFalse(visitedToAdd.IsVisited(atom));
            visitedToAdd.Visited(visited);
            Assert.IsTrue(visitedToAdd.IsVisited(atom));
        }