public void SolveQuadraticEquatioNegative(double a, double b, double c) { try { IfElse.SolveQuadraticEquation(a, b, c); } catch { Assert.Pass(); } Assert.Fail(); }
public void SolveQuadraticEquation(double a, double b, double c, double[] expected) { double[] actual = IfElse.SolveQuadraticEquation(a, b, c); Assert.AreEqual(expected, actual); }