Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }