예제 #1
0
 public void subTest()
 {
     MyMathClass target = new MyMathClass(); // TODO: Initialize to an appropriate value
     int i = 0; // TODO: Initialize to an appropriate value
     int j = 0; // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value :)
     int actual;
     actual = target.sub(i, j);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
예제 #2
0
        //static void Main(string[] args)
        static void Main()
        {
            //comment
            MyMathClass m = new MyMathClass();

            Console.WriteLine("Result: {0}", m.multi(5, 6));
            Console.WriteLine("Result: {0}", m.sum(2, 2));
            Console.WriteLine("Result: {0}", m.sub(3, 1));
            Console.WriteLine();
            Console.WriteLine("Hit 'Enter' lo leave...");
            Console.ReadLine();
        }