public void FindXNegative(double a, double b, double c) { try { VariablesMath.FindX(a, b, c); } catch { Assert.Pass(); } Assert.Fail(); }
static void Main(string[] args) { Console.WriteLine("Please enter A ="); double a = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Please enter B ="); double b = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Please enter C ="); double c = Convert.ToInt32(Console.ReadLine()); double x = VariablesMath.FindX(a, b, c); Console.WriteLine("X equal " + x); }
public void FindX(double a, double b, double c, double expected) { double actual = VariablesMath.FindX(a, b, c); }