Beispiel #1
0
 public void FindXNegative(double a, double b, double c)
 {
     try
     {
         VariablesMath.FindX(a, b, c);
     }
     catch
     {
         Assert.Pass();
     }
     Assert.Fail();
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void FindX(double a, double b, double c, double expected)
 {
     double actual = VariablesMath.FindX(a, b, c);
 }