Example #1
0
            public void TestAddNegative()

            {
                MyMath math = new MyMath();

                Assert.Greater(55, math.Add(10, 20));
            }
Example #2
0
            public void TestAddPositives()

            {
                MyMath math = new MyMath();

                Assert.AreEqual(30, math.Add(10, 20));
            }
Example #3
0
        static void Main(string[] args)
        {
            MyMath math = new MyMath();

            Console.WriteLine(math.Add(10, 20));
            Console.ReadLine();
        }
Example #4
0
        static void Main(string[] args)
        {
            int    x    = Console.Read();
            int    y    = Console.Read();
            MyMath math = new MyMath();

            Console.WriteLine("Your Addition is: ");
            Console.WriteLine(math.Add(x, y));
            Console.ReadLine();
        }
Example #5
0
            public void TestAddCore()
            {
                MyMath math = new MyMath();

                Assert.Greater(math.Add(30, 10), 30);
            }
Example #6
0
            public void TestAddNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Add(10, 20));
            }