Exemple #1
0
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args">Command line arguments.</param>
        public static void Main(string[] args)
        {
            Logic maths = new Logic();
            int result = maths.Addition(10, 20);
            maths.Display(result);

            Console.ReadLine();
        }
Exemple #2
0
 public void AdditionTest()
 {
     Logic target = new Logic(); // TODO: Initialize to an appropriate value
     int a = 50; // TODO: Initialize to an appropriate value
     int b = 50; // TODO: Initialize to an appropriate value
     int expected = 100; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.Addition(a, b);
     Assert.AreEqual(expected, actual);
 }