Esempio n. 1
0
 public void GetSquareEquationRootsTests(double a, double b, double c, double[] expected)
 {
     double[] actual = Branching.GetSquareEquationRoots(a, b, c);
     Assert.AreEqual(expected, actual);
 }
Esempio n. 2
0
 public void GetSquareEquationRootsNegativeTests(double a, double b, double c)
 {
     Assert.Throws <ArgumentException>(() => Branching.GetSquareEquationRoots(a, b, c));
 }