public void ConstructorTest4()
{
// (x+5)^3 + 2(x+5)^2 - 10(x+5)
Func<int, double> function = x =>
{
int y = (x + 5);
return y * y * y + 2 * y * y - 10 * y;
};
BinarySearch search = new BinarySearch(function, -6, -4);
double root = search.FindRoot();
Assert.AreEqual(-5, root);
}