Пример #1
0
        static void Main(string[] args)
        {
            MyMathClass m = new MyMathClass();

            int res = m.sum(2, 7);
            Console.WriteLine("Calling sum() function from nuget package named: DemoClassLib.1.0.0.nupkg\n\nResult: {0}", res);

            Console.WriteLine("\nBye!");
            Console.ReadLine();
        }
Пример #2
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.");
 }
Пример #3
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();
        }
Пример #4
0
 public void MyMathClassConstructorTest()
 {
     MyMathClass target = new MyMathClass();
     //Assert.Inconclusive("TODO: Implement code to verify target");
 }