Esempio n. 1
0
        static void Main(string[] args)
        {
            MyMath math = new MyMath();

            Console.WriteLine(math.Add(10, 20));
            Console.ReadLine();
        }
Esempio n. 2
0
            public void TestAddPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(30, math.Add(10, 20));
            }
Esempio n. 3
0
            public void TestAddNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Add(10, 20));
            }
Esempio n. 4
0
            public void TestAddGreater()
            {
                MyMath math = new MyMath();

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