예제 #1
0
        static void Main(string[] args)
        {
            TestClass1 testClass = new TestClass1();

            testClass.Add(12, 12);
            testClass.Add();
            // NewMethod();
            Console.Read();
        }
예제 #2
0
        // Entry point of the program
        public static void Main(string[] args)
        {
            TestClass1 testClass = new TestClass1();

            int result = testClass.Add(12, 12);

            Console.WriteLine(result + 10);

            testClass.Add();

            Console.Read();
        }
        //Entry point of our program
        static void Main(string[] args)
        {
            //instantiate an object of TestClass1

            TestClass1 class1 = new TestClass1();

            /*
             * //class1.TestCase1("Hello World!");
             * //class1.TestCase2("How are you");
             *
             * class1.SetValue(20);
             * class1.GetValue();
             * class1.SetValue(45);
             *
             * TestClass1 class2 = new TestClass1();
             * class2.SetValue(40);
             * class2.GetValue();
             *
             * //class1 called again has its own copy of the variable value which is a member
             * class1.GetValue();
             *
             *
             * Console.Read();*/

            /*
             * //exploring different variable types and their storage capacity
             * //Int16 salary = 32767;
             * Int32 PayRoll = 32768;
             *
             * Console.WriteLine(salary);
             *
             * Console.Read();
             */

            String name = "Anuradha";

            Console.WriteLine(name.ToLower());

            bool testCase = true;

            Console.WriteLine(testCase);


            Console.Read();
        }
예제 #4
0
        // Refactored from previous lessons
        private static void OldCode()
        {
            TestClass1 class1 = new TestClass1();

            // Implicit convertion
            Int16 salary          = 32767;
            int   salaryIncrement = 3276745;

            Console.WriteLine(salaryIncrement);

            // Instead of this
            var incomeTax = 23234.234d;

            Console.WriteLine(incomeTax.GetType().Name);

            // Explicit conversion
            Console.WriteLine((int)incomeTax);

            var loginPage = new LoginPage();

            loginPage.ClickButton();
        }
예제 #5
0
        //a label for the class program
        // Program p = new Program();


        //Entry point of program
        static void Main(string[] args)
        {
            TestClass1 class1 = new TestClass1();

            //string name = "AAkash";

            //Console.WriteLine(name.ToLower());

            //class1.SetVlaue(20);
            //class1.GetVlaue();

            //TestClass1 class2 = new TestClass1();

            //class2.SetVlaue(30);
            //class2.GetVlaue();

            //class1.GetVlaue();

            //class1.TestCase1("PASSED");
            //class1.TestCase2("FAILED");

            //Console.Write("Hello Execute Automation");
            Console.Read();
        }