public static void Main(string[] args) { Console.WriteLine("Hello CIJUG! Press any key to continue..."); Console.ReadKey(true); Console.WriteLine("Three and Five added together", SampleClass.Add(3, 5)); Console.WriteLine("Hello CIJUG! Press any key to continue..."); Console.ReadKey(true); }
static void Main(string[] args) { var x = new SampleClass(); Debugger.Break(); // And now Step into... int sum = x.Add(10, 20); }
public void AddTest() { int a = SampleClass.Add(1, 2); }
public void ShouldAddTwoNumbers() { Assert.Equal(3, SampleClass.Add(1, 2)); }