Exemple #1
0
 public void Can_Create_FancyClockFormatter()
 {
     var formatter = new FancyClockFormatter();
 }
Exemple #2
0
 public FancyClock(FancyClockFormatter formatter)
 {
     this.formatter = formatter;
 }
 public TimeWords RunGetMinuteTest(TimeSpan Time)
 {
     FancyClockFormatter target = new FancyClockFormatter();
     return target.GetMinute(Time);
 }
Exemple #4
0
 public FancyClock(FancyClockFormatter formatter)
 {
     this.formatter = formatter;
 }
 public void GetTime_Returns_Five_To_Two_On_One_Fifty_Five()
 {
     FancyClockFormatter target = new FancyClockFormatter();
     TimeSpan Time = new TimeSpan(1, 55, 3);
     TimeWords expected = new TimeWords();
     expected.Two = true; expected.FiveMinute = true; expected.To = true;
     var actual = target.GetTime(Time);
     Assert.AreEqual(expected, actual);
 }