Ejemplo n.º 1
0
 public void Can_Create_FancyClockFormatter()
 {
     var formatter = new FancyClockFormatter();
 }
Ejemplo n.º 2
0
 public FancyClock(FancyClockFormatter formatter)
 {
     this.formatter = formatter;
 }
Ejemplo n.º 3
0
 public TimeWords RunGetMinuteTest(TimeSpan Time)
 {
     FancyClockFormatter target = new FancyClockFormatter();
     return target.GetMinute(Time);
 }
Ejemplo n.º 4
0
 public FancyClock(FancyClockFormatter formatter)
 {
     this.formatter = formatter;
 }
Ejemplo n.º 5
0
 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);
 }