Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void DivideByZeroExceptionTest(int a, int b, int c)
 {
     Assert.Throws <DivideByZeroException>(() => Task4.SolveLinearEquation(a, b, c));
 }