public void TestGreetingsHasNameSuccess() { HelloWorldMaker helloWorldMaker = new HelloWorldMaker(); var result = helloWorldMaker.Greetings("Pascal"); Assert.IsTrue(result.Contains("Pascal")); }
public void TestGreetingsNullFail() { HelloWorldMaker helloWorldMaker = new HelloWorldMaker(); var result = helloWorldMaker.Greetings(null); Assert.IsFalse(string.IsNullOrEmpty(result)); }
static void Main(string[] args) { HelloWorldMaker helloWorldMaker = new HelloWorldMaker(); var result = helloWorldMaker.Greetings("Markus"); Console.WriteLine(result); Console.ReadLine(); }