Пример #1
0
 public void SimpleDivisionNegative(double a, double b)
 {
     try
     {
         VariablesMath.SimpleDivision(a, b);
     }
     catch
     {
         Assert.Pass();
     }
     Assert.Fail();
 }
Пример #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());
            double x  = VariablesMath.SimpleDivision(a, b);
            double x1 = VariablesMath.FindRemainder(a, b);

            Console.WriteLine("Result: " + x + " Remaider: " + x1);
        }
Пример #3
0
            public void SimpleDivision(double a, double b, double expected)
            {
                double actual = VariablesMath.SimpleDivision(a, b);

                Assert.AreEqual(expected, actual);
            }