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)); }
public void TestGreetWithMultipleNamesAndUppercaseAndEscapedCommas() { string[] names = new string[] { "Bob", "\"David, Liam\"" }; Assert.AreEqual("Hello, Bob and David, Liam.", GreetingKata.Greet(names)); }
public void TestGreetWithMultipleNames() { string[] names = new string[] { "Bob", "David", "Terrance" }; Assert.AreEqual("Hello, Bob, David and Terrance.", GreetingKata.Greet(names)); }
public void TestGreetWithTwoNames() { string[] names = new string[] { "Bob", "David" }; Assert.AreEqual("Hello, Bob and David.", GreetingKata.Greet(names)); }
public void TestGreetWithNameAllUppercase() { Assert.AreEqual("HELLO BOB!", GreetingKata.Greet("BOB")); }
public void TestGreetWithNoName() { Assert.AreEqual("Hello, my friend.", GreetingKata.Greet("")); }
public void TestGreetWithName() { Assert.AreEqual("Hello, Bob.", GreetingKata.Greet("Bob")); }