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(); }
//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(); }
public void sumTest() { MyMathClass target = new MyMathClass(); // TODO: Initialize to an appropriate value int i = 2; // TODO: Initialize to an appropriate value int j = 2; // TODO: Initialize to an appropriate value int expected = 4; // TODO: Initialize to an appropriate value int actual; actual = target.sum(i, j); Assert.AreEqual(expected, actual); //Assert.Inconclusive("Verify the correctness of this test method."); }