public void FourNodesWithLoopSize3() { var loopDetector = new LoopDetector(); LoopDetector.Node rootNode = new LoopDetector.Node(); loopDetector.CreateChain(2, 3, rootNode, rootNode); Assert.AreEqual(3, Task.GetLoopSize(rootNode)); }
public void RandomChainNodesWithLoopSize30() { var loopDetector = new LoopDetector(); LoopDetector.Node rootNode = new LoopDetector.Node(); loopDetector.CreateChain(3, 30, rootNode, rootNode); Assert.AreEqual(30, Task.GetLoopSize(rootNode)); }