示例#1
0
 private static void Main(string[] args)
 {
     Console.WriteLine("Write yor name:");
     Console.WriteLine(HelloWorld.Greet(Console.ReadLine()));
     Console.WriteLine("Write yor name:");
     Console.WriteLine(OneForMe.Speak(Console.ReadLine()));
     Console.ReadKey();
 }
示例#2
0
 public void OnForMeWithNameOK()
 {
     Assert.AreEqual("One for Oscar, one for me!", OneForMe.Speak("Oscar"));
 }
示例#3
0
 public void GreetWithoutNameOK()
 {
     Assert.AreEqual("One for you, one for me!", OneForMe.Speak());
 }