示例#1
0
        public void TestMethod1()
        {
            Greeter greeter = new Greeter();

            greeter.SayHello("Aaron");
            string greeting = greeter.GetRandomGreeting().ToLower();

            greeting = "Random greeting: " + greeting;
            greeter.SaySomething(greeting);

            greeter.SaySomething(greeter.GetRandomGreeting());
        }
示例#2
0
        public void TestMethod1()
        {
            Greeter greeter = new Greeter();

            //1 - this is an argument, whereas in the class itself, it is called a parameter
            //                  1
            greeter.SayHello("Evan");

            string greeting = greeter.GetRandomGreeting().ToLower();

            greeting = "Random Greeting: " + greeting;
            greeter.SaySomething(greeting);
        }