コード例 #1
0
 public void TestGreetWithMultipleNamesAndUppercaseAndCommas()
 {
     string[] names = new string[] { "Bob", "DAVID", "Terrance, Kyle", "TYLER", "LIAM", "Steve" };
     Assert.AreEqual("Hello, Bob, Terrance, Kyle and Steve. AND HELLO DAVID, TYLER AND LIAM!", GreetingKata.Greet(names));
 }
コード例 #2
0
 public void TestGreetWithMultipleNamesAndUppercaseAndEscapedCommas()
 {
     string[] names = new string[] { "Bob", "\"David, Liam\"" };
     Assert.AreEqual("Hello, Bob and David, Liam.", GreetingKata.Greet(names));
 }
コード例 #3
0
 public void TestGreetWithMultipleNames()
 {
     string[] names = new string[] { "Bob", "David", "Terrance" };
     Assert.AreEqual("Hello, Bob, David and Terrance.", GreetingKata.Greet(names));
 }
コード例 #4
0
 public void TestGreetWithTwoNames()
 {
     string[] names = new string[] { "Bob", "David" };
     Assert.AreEqual("Hello, Bob and David.", GreetingKata.Greet(names));
 }
コード例 #5
0
 public void TestGreetWithNameAllUppercase()
 {
     Assert.AreEqual("HELLO BOB!", GreetingKata.Greet("BOB"));
 }
コード例 #6
0
 public void TestGreetWithNoName()
 {
     Assert.AreEqual("Hello, my friend.", GreetingKata.Greet(""));
 }
コード例 #7
0
 public void TestGreetWithName()
 {
     Assert.AreEqual("Hello, Bob.", GreetingKata.Greet("Bob"));
 }