static void Main(string[] args) { Console.WriteLine("Enter a name :"); String name = System.Console.ReadLine(); string str = SmartHelloWorld.WriteAGreetings(name, new DateTimeImpl()); Console.WriteLine(str); }
public void should_return_Grettings_without_name_when_no_name_in_input(int hour, String name, String expected) { string sut = SmartHelloWorld.WriteAGreetings(name, new DateTimeImpl(hour)); Check.That(sut).IsEqualTo(expected); }
public void should_return_NightGrettings_when_dayTime_is_night(int hour, String name, String expected) { string sut = SmartHelloWorld.WriteAGreetings(name, new DateTimeImpl(hour)); Check.That(sut).IsEqualTo(expected); }