public void SolveLinearEquationTest(int a, int b, int c, double expected) { double actual = Task4.SolveLinearEquation(a, b, c); double delta = 0.0001; Assert.AreEqual(expected, actual, delta); }
public void DivideByZeroExceptionTest(int a, int b, int c) { Assert.Throws <DivideByZeroException>(() => Task4.SolveLinearEquation(a, b, c)); }