public void FindScapegoatInPath_ScapegoatIsNotPresent_ThrowsAnException() { var tree = new ScapegoatTree <int>(1, 1); var path = new Stack <Node <int> >(); path.Push(tree.Root !); Assert.Throws <InvalidOperationException>(() => tree.FindScapegoatInPath(path)); }
public void FindScapegoatInPath_PathIsEmpty_ThrowsAnException() { var tree = new ScapegoatTree <int>(); Assert.Throws <ArgumentException>(() => tree.FindScapegoatInPath(new Stack <Node <int> >())); }