示例#1
0
        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);
        }
示例#2
0
        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);
 }
示例#4
0
 public void ShouldAddTwoNumbers()
 {
     Assert.Equal(3, SampleClass.Add(1, 2));
 }