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); }
public void RemainderOfTheDivision(double a, double b, double expected) { double actual = VariablesMath.FindRemainder(a, b); Assert.AreEqual(expected, actual); }