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)); }
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)); }